<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>SystemSharp: MemoryMapping.cs Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">SystemSharp
   &#160;<span id="projectnumber">0.3</span>
   </div>
   <div id="projectbrief">A system-level modeling framework for designing real-time embedded systems</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_memory_mapping_8cs_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Properties</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Events</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">MemoryMapping.cs</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_memory_mapping_8cs.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="keyword">using</span> System;</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="keyword">using</span> System.Collections;</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="keyword">using</span> System.Collections.Generic;</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="keyword">using</span> System.Collections.ObjectModel;</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="keyword">using</span> System.Diagnostics;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="keyword">using</span> System.Diagnostics.Contracts;</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="keyword">using</span> System.IO;</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="keyword">using</span> System.Linq;</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="keyword">using</span> System.Reflection;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="keyword">using</span> System.Text;</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="keyword">using</span> SystemSharp.Common;</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="keyword">using</span> SystemSharp.Components;</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="keyword">using</span> SystemSharp.Components.Transactions;</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="keyword">using</span> SystemSharp.DataTypes;</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="keyword">using</span> SystemSharp.Meta;</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="keyword">using</span> SystemSharp.SysDOM;</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="keyword">namespace </span>SystemSharp.Synthesis</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;{</div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="interface_system_sharp_1_1_synthesis_1_1_i_serializer.html">   42</a></span>&#160;    <span class="keyword">public</span> <span class="keyword">interface </span><a class="code" href="interface_system_sharp_1_1_synthesis_1_1_i_serializer.html">ISerializer</a></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    {</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;        <a class="code" href="struct_system_sharp_1_1_data_types_1_1_std_logic_vector.html">StdLogicVector</a> Serialize(<span class="keywordtype">object</span> value);</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;        <span class="keywordtype">object</span> Deserialize(<a class="code" href="struct_system_sharp_1_1_data_types_1_1_std_logic_vector.html">StdLogicVector</a> slv, <a class="code" href="class_system_sharp_1_1_meta_1_1_type_descriptor.html">TypeDescriptor</a> targetType);</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    }</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, AllowMultiple = <span class="keyword">true</span>)]</div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_s_l_v_serializable.html">   65</a></span>&#160;    <span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="class_system_sharp_1_1_synthesis_1_1_s_l_v_serializable.html">SLVSerializable</a> : Attribute</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    {</div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_s_l_v_serializable.html#a670eaddd8a118c42307b89baeee02c8f">   70</a></span>&#160;        <span class="keyword">public</span> Type ObjectType { <span class="keyword">get</span>; <span class="keyword">private</span> set; }</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;</div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_s_l_v_serializable.html#aa0cad52807de7cb8c74653ead61dcd62">   75</a></span>&#160;        <span class="keyword">public</span> Type SerializerType { <span class="keyword">get</span>; <span class="keyword">private</span> set; }</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;</div>
<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_s_l_v_serializable.html#a4ff29b8c4c160812019e3c8d76ae077f">   83</a></span>&#160;        <span class="keyword">public</span> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_s_l_v_serializable.html#a4ff29b8c4c160812019e3c8d76ae077f">SLVSerializable</a>(Type objectType, Type serializerType)</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;        {</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;            ObjectType = objectType;</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;            SerializerType = serializerType;</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;        }</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;</div>
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_s_l_v_serializable.html#ab5535df7857e785e8e07fb95e58f2533">   95</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> <a class="code" href="interface_system_sharp_1_1_synthesis_1_1_i_serializer.html">ISerializer</a> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_s_l_v_serializable.html#ab5535df7857e785e8e07fb95e58f2533">TryGetSerializer</a>(Type type)</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;        {</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;            <span class="keywordtype">object</span>[] tattrs = type.GetCustomAttributes(typeof(<a class="code" href="class_system_sharp_1_1_synthesis_1_1_s_l_v_serializable.html">SLVSerializable</a>), <span class="keyword">false</span>);</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;            <span class="keywordtype">object</span>[] sattrs = typeof(<a class="code" href="struct_system_sharp_1_1_data_types_1_1_std_logic_vector.html">StdLogicVector</a>).GetCustomAttributes(typeof(<a class="code" href="class_system_sharp_1_1_synthesis_1_1_s_l_v_serializable.html">SLVSerializable</a>), <span class="keyword">false</span>);</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;            <a class="code" href="class_system_sharp_1_1_synthesis_1_1_s_l_v_serializable.html">SLVSerializable</a> result = tattrs.Union(sattrs).Cast&lt;SLVSerializable&gt;().Where(a =&gt; a.ObjectType.Equals(type)).FirstOrDefault();</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;            <span class="keywordflow">if</span> (result == null)</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;                <span class="keywordflow">return</span> null;</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;                <span class="keywordflow">return</span> (<a class="code" href="interface_system_sharp_1_1_synthesis_1_1_i_serializer.html">ISerializer</a>)Activator.CreateInstance(result.SerializerType);</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;        }</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    }</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;</div>
<div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="interface_system_sharp_1_1_synthesis_1_1_i_marshal_info.html">  107</a></span>&#160;    <span class="keyword">public</span> <span class="keyword">interface </span><a class="code" href="interface_system_sharp_1_1_synthesis_1_1_i_marshal_info.html">IMarshalInfo</a></div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;    {</div>
<div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="interface_system_sharp_1_1_synthesis_1_1_i_marshal_info.html#ade21d08225261aa9105399b551b807a4">  112</a></span>&#160;        uint WordSize { <span class="keyword">get</span>; }</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;</div>
<div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="interface_system_sharp_1_1_synthesis_1_1_i_marshal_info.html#a6889bbbc7866fbf48a9233ccfc6d0f7a">  117</a></span>&#160;        <span class="keywordtype">bool</span> UseArraySubWordAlignment { <span class="keyword">get</span>; }</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;</div>
<div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="interface_system_sharp_1_1_synthesis_1_1_i_marshal_info.html#ade9c987c3a3711d329a5ea58d008e846">  122</a></span>&#160;        <span class="keywordtype">bool</span> UseArrayDimPow2Alignment { <span class="keyword">get</span>; }</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;</div>
<div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="interface_system_sharp_1_1_synthesis_1_1_i_marshal_info.html#a7ad6c99035e188cc4eec136946056974">  127</a></span>&#160;        <span class="keywordtype">bool</span> UseStrongPow2Alignment { <span class="keyword">get</span>; }</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;</div>
<div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="interface_system_sharp_1_1_synthesis_1_1_i_marshal_info.html#aa718a38cfa72576ab6e938ec8fd9677b">  132</a></span>&#160;        uint Alignment { <span class="keyword">get</span>; }</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    }</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;</div>
<div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_default_marshal_info.html">  138</a></span>&#160;    <span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="class_system_sharp_1_1_synthesis_1_1_default_marshal_info.html">DefaultMarshalInfo</a> : <a class="code" href="interface_system_sharp_1_1_synthesis_1_1_i_marshal_info.html">IMarshalInfo</a></div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    {</div>
<div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_default_marshal_info.html#a411cbaeddaf22767ace73ba9754b3ac5">  143</a></span>&#160;        <span class="keyword">public</span> uint WordSize { <span class="keyword">get</span>; set;  }</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;</div>
<div class="line"><a name="l00148"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_default_marshal_info.html#ac88cdfb95d9f0cb346945819fe5cd132">  148</a></span>&#160;        <span class="keyword">public</span> <span class="keywordtype">bool</span> UseArraySubWordAlignment { <span class="keyword">get</span>; set; }</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;</div>
<div class="line"><a name="l00153"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_default_marshal_info.html#aa0e767b6d63f0f4bda8664f957dfcda8">  153</a></span>&#160;        <span class="keyword">public</span> <span class="keywordtype">bool</span> UseArrayDimPow2Alignment { <span class="keyword">get</span>; set; }</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;</div>
<div class="line"><a name="l00158"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_default_marshal_info.html#a99865724e5cc1ae551465d47784c3180">  158</a></span>&#160;        <span class="keyword">public</span> <span class="keywordtype">bool</span> UseStrongPow2Alignment { <span class="keyword">get</span>; set;  }</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;</div>
<div class="line"><a name="l00163"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_default_marshal_info.html#a6ba66812b1289603be846e35e52175ff">  163</a></span>&#160;        <span class="keyword">public</span> uint Alignment { <span class="keyword">get</span>; set;  }</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;</div>
<div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_default_marshal_info.html#a59613cd2ce8c4d2f2dcfa2b2ae1b6255">  165</a></span>&#160;        <span class="keyword">public</span> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_default_marshal_info.html#a59613cd2ce8c4d2f2dcfa2b2ae1b6255">DefaultMarshalInfo</a>()</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;        {</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;            WordSize = 64;</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;            Alignment = 1;</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;            UseArraySubWordAlignment = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;            UseArrayDimPow2Alignment = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;            UseStrongPow2Alignment = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;        }</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;    }</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;</div>
<div class="line"><a name="l00178"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_h_w_marshal_info.html">  178</a></span>&#160;    <span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="class_system_sharp_1_1_synthesis_1_1_h_w_marshal_info.html">HWMarshalInfo</a> : <a class="code" href="interface_system_sharp_1_1_synthesis_1_1_i_marshal_info.html">IMarshalInfo</a></div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;    {</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;        <span class="keyword">public</span> uint WordSize</div>
<div class="line"><a name="l00184"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_h_w_marshal_info.html#aaf37d290a7581233d60a69a3261760af">  184</a></span>&#160;        {</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;            <span class="keyword">get</span> { <span class="keywordflow">return</span> 1; }</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;        }</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;        <span class="keyword">public</span> <span class="keywordtype">bool</span> UseArraySubWordAlignment</div>
<div class="line"><a name="l00192"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_h_w_marshal_info.html#a9aaabaae47b9be8c4a7ed1148095e3ae">  192</a></span>&#160;        {</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;            <span class="keyword">get</span> { <span class="keywordflow">return</span> <span class="keyword">true</span>; }</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;        }</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;        <span class="keyword">public</span> <span class="keywordtype">bool</span> UseArrayDimPow2Alignment</div>
<div class="line"><a name="l00200"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_h_w_marshal_info.html#ad999722160466f87c5187942bddb0a19">  200</a></span>&#160;        {</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;            <span class="keyword">get</span> { <span class="keywordflow">return</span> <span class="keyword">false</span>; }</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;        }</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;        <span class="keyword">public</span> <span class="keywordtype">bool</span> UseStrongPow2Alignment</div>
<div class="line"><a name="l00208"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_h_w_marshal_info.html#a6fb30f54ee765a0a8771e0357c59c893">  208</a></span>&#160;        {</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;            <span class="keyword">get</span> { <span class="keywordflow">return</span> <span class="keyword">false</span>; }</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;        }</div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;        <span class="keyword">public</span> uint Alignment</div>
<div class="line"><a name="l00216"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_h_w_marshal_info.html#a45ceb41618ab9e0ad9e2214b9620e8ef">  216</a></span>&#160;        {</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;            <span class="keyword">get</span> { <span class="keywordflow">return</span> 1; }</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;        }</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;        <span class="keyword">private</span> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_h_w_marshal_info.html">HWMarshalInfo</a>()</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;        {</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;        }</div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;</div>
<div class="line"><a name="l00227"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_h_w_marshal_info.html#a340a22f9bc68b98ceaa3bc2390849129">  227</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> readonly <a class="code" href="interface_system_sharp_1_1_synthesis_1_1_i_marshal_info.html">IMarshalInfo</a> Instance = <span class="keyword">new</span> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_h_w_marshal_info.html">HWMarshalInfo</a>();</div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;    }</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;</div>
<div class="line"><a name="l00233"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_field_location.html">  233</a></span>&#160;    <span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="class_system_sharp_1_1_synthesis_1_1_field_location.html">FieldLocation</a></div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;    {</div>
<div class="line"><a name="l00238"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_field_location.html#a45e77b9490f7b98f7dc44325a6436a68">  238</a></span>&#160;        <span class="keyword">public</span> FieldInfo Field { <span class="keyword">get</span>; <span class="keyword">private</span> set; }</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;</div>
<div class="line"><a name="l00243"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_field_location.html#afc3d0e56cac786eddc282bde9e7bd9a4">  243</a></span>&#160;        <span class="keyword">public</span> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_layout.html">MemoryLayout</a> FieldLayout { <span class="keyword">get</span>; <span class="keyword">private</span> set; }</div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;</div>
<div class="line"><a name="l00248"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_field_location.html#aab7a9ac58da3434fe1573ae25ee610ef">  248</a></span>&#160;        <span class="keyword">public</span> ulong Offset { <span class="keyword">get</span>; <span class="keyword">private</span> set; }</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;</div>
<div class="line"><a name="l00256"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_field_location.html#a95d5133f2864cc4713f9cdc2086d84d7">  256</a></span>&#160;        <span class="keyword">public</span> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_field_location.html#a95d5133f2864cc4713f9cdc2086d84d7">FieldLocation</a>(FieldInfo field, <a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_layout.html">MemoryLayout</a> fieldLayout, ulong offset)</div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;        {</div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;            Field = field;</div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;            FieldLayout = fieldLayout;</div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;            Offset = offset;</div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;        }</div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;    }</div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;</div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;    [ContractClass(typeof(MemoryLayoutContractClass))]</div>
<div class="line"><a name="l00268"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_memory_layout.html">  268</a></span>&#160;    <span class="keyword">public</span> <span class="keyword">abstract</span> <span class="keyword">class </span><a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_layout.html">MemoryLayout</a></div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;    {</div>
<div class="line"><a name="l00273"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_memory_layout.html#a12882add8e146a98b4d9140c08fd61a8">  273</a></span>&#160;        <span class="keyword">public</span> <a class="code" href="class_system_sharp_1_1_meta_1_1_type_descriptor.html">TypeDescriptor</a> LayoutedType { <span class="keyword">get</span>; <span class="keyword">private</span> set; }</div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;</div>
<div class="line"><a name="l00278"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_memory_layout.html#a723172ac20b1f8385a3445b95e29d1c6">  278</a></span>&#160;        <span class="keyword">public</span> ulong <a class="code" href="namespace_system_sharp_1_1_data_types.html#aaa77d3e1a986cc90a1b9f920579b78d3a6f6cb72d544962fa333e2e34ce64f719">Size</a> { <span class="keyword">get</span>; <span class="keyword">internal</span> set;  }</div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;</div>
<div class="line"><a name="l00283"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_memory_layout.html#ae7b683cddf414b8dc64b38bf824ce89a">  283</a></span>&#160;        <span class="keyword">public</span> ulong SizeInBits { <span class="keyword">get</span>; <span class="keyword">internal</span> set; }</div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;</div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;        <span class="keyword">internal</span> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_layout.html">MemoryLayout</a>(<a class="code" href="class_system_sharp_1_1_meta_1_1_type_descriptor.html">TypeDescriptor</a> layoutedType)</div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;        {</div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;            LayoutedType = layoutedType;</div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;        }</div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;</div>
<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;        <span class="keyword">public</span> <span class="keyword">abstract</span> <a class="code" href="struct_system_sharp_1_1_data_types_1_1_std_logic_vector.html">StdLogicVector</a>[] SerializeInstance(<span class="keywordtype">object</span> instance);</div>
<div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;    }</div>
<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;</div>
<div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;    [ContractClassFor(typeof(MemoryLayout))]</div>
<div class="line"><a name="l00299"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_memory_layout_contract_class.html">  299</a></span>&#160;    <span class="keyword">abstract</span> <span class="keyword">class </span><a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_layout_contract_class.html">MemoryLayoutContractClass</a>: <a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_layout.html">MemoryLayout</a></div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;    {</div>
<div class="line"><a name="l00301"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_memory_layout_contract_class.html#a8f74685529abb0743445689289fcaf14">  301</a></span>&#160;        <span class="keyword">public</span> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_layout_contract_class.html#a8f74685529abb0743445689289fcaf14">MemoryLayoutContractClass</a>() :</div>
<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;            base(null)</div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;        {</div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;        }</div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;</div>
<div class="line"><a name="l00306"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_memory_layout_contract_class.html#a81a4eb13778b8b658267a8bacaf92141">  306</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">override</span> <a class="code" href="struct_system_sharp_1_1_data_types_1_1_std_logic_vector.html">StdLogicVector</a>[] <a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_layout_contract_class.html#a81a4eb13778b8b658267a8bacaf92141">SerializeInstance</a>(<span class="keywordtype">object</span> instance)</div>
<div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;        {</div>
<div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;            Contract.Requires&lt;ArgumentNullException&gt;(instance != null);</div>
<div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;            Contract.Requires&lt;ArgumentException&gt;(TypeDescriptor.GetTypeOf(instance).Equals(LayoutedType));</div>
<div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;            <span class="keywordflow">return</span> null;</div>
<div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;        }</div>
<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;    }</div>
<div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;</div>
<div class="line"><a name="l00317"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_prim_memory_layout.html">  317</a></span>&#160;    <span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="class_system_sharp_1_1_synthesis_1_1_prim_memory_layout.html">PrimMemoryLayout</a>: <a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_layout.html">MemoryLayout</a></div>
<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;    {</div>
<div class="line"><a name="l00322"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_prim_memory_layout.html#ae76502a25276b3b6271590417ed89e88">  322</a></span>&#160;        <span class="keyword">public</span> <span class="keywordtype">int</span> WordSize { <span class="keyword">get</span>; <span class="keyword">private</span> set; }</div>
<div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;</div>
<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;        <span class="keyword">internal</span> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_prim_memory_layout.html">PrimMemoryLayout</a>(<a class="code" href="class_system_sharp_1_1_meta_1_1_type_descriptor.html">TypeDescriptor</a> layoutedType, <span class="keywordtype">int</span> wordSize):</div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;            base(layoutedType)</div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;        {</div>
<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;            WordSize = wordSize;</div>
<div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;        }</div>
<div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;</div>
<div class="line"><a name="l00330"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_prim_memory_layout.html#a88181a3ebb0c9c0fa8e89150b6eb2e54">  330</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">override</span> <a class="code" href="struct_system_sharp_1_1_data_types_1_1_std_logic_vector.html">StdLogicVector</a>[] <a class="code" href="class_system_sharp_1_1_synthesis_1_1_prim_memory_layout.html#a88181a3ebb0c9c0fa8e89150b6eb2e54">SerializeInstance</a>(<span class="keywordtype">object</span> instance)</div>
<div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;        {</div>
<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;            <a class="code" href="struct_system_sharp_1_1_data_types_1_1_std_logic_vector.html">StdLogicVector</a> plain = StdLogicVector.Serialize(instance);</div>
<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;            <a class="code" href="struct_system_sharp_1_1_data_types_1_1_std_logic_vector.html">StdLogicVector</a>[] result = <span class="keyword">new</span> <a class="code" href="struct_system_sharp_1_1_data_types_1_1_std_logic_vector.html">StdLogicVector</a>[<a class="code" href="namespace_system_sharp_1_1_data_types.html#aaa77d3e1a986cc90a1b9f920579b78d3a6f6cb72d544962fa333e2e34ce64f719">Size</a>];</div>
<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; (int)<a class="code" href="namespace_system_sharp_1_1_data_types.html#aaa77d3e1a986cc90a1b9f920579b78d3a6f6cb72d544962fa333e2e34ce64f719">Size</a>; i++)</div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;            {</div>
<div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;                <span class="keywordtype">int</span> upper = (i + 1) * WordSize - 1;</div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;                <span class="keywordflow">if</span> (upper &gt;= plain.<a class="code" href="struct_system_sharp_1_1_data_types_1_1_std_logic_vector.html#a2b88c122ab31e982a58f2afa18d39283">Size</a>)</div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;                {</div>
<div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;                    result[i] = StdLogicVector._0s(upper - plain.Size + 1).Concat(plain[plain.<a class="code" href="struct_system_sharp_1_1_data_types_1_1_std_logic_vector.html#a2b88c122ab31e982a58f2afa18d39283">Size</a> - 1, i * WordSize]);</div>
<div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;                }</div>
<div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;                <span class="keywordflow">else</span></div>
<div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;                {</div>
<div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;                    result[i] = plain[(i + 1) * WordSize - 1, i * WordSize];</div>
<div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;                }</div>
<div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;            }</div>
<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;</div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;            <span class="keywordflow">return</span> result;</div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;        }</div>
<div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;    }</div>
<div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;</div>
<div class="line"><a name="l00354"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_enum_memory_layout.html">  354</a></span>&#160;    <span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="class_system_sharp_1_1_synthesis_1_1_enum_memory_layout.html">EnumMemoryLayout</a> : <a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_layout.html">MemoryLayout</a></div>
<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;    {</div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;        <span class="keyword">private</span> uint _wordSize;</div>
<div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;</div>
<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;        <span class="keyword">internal</span> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_enum_memory_layout.html">EnumMemoryLayout</a>(<a class="code" href="class_system_sharp_1_1_meta_1_1_type_descriptor.html">TypeDescriptor</a> layoutedType, <a class="code" href="interface_system_sharp_1_1_synthesis_1_1_i_marshal_info.html">IMarshalInfo</a> minfo) :</div>
<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;            base(layoutedType)</div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;        {</div>
<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;            Contract.Requires(layoutedType.CILType.IsEnum);</div>
<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;            SizeInBits = (ulong)NumBits;</div>
<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;            _wordSize = minfo.WordSize;</div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;            <a class="code" href="namespace_system_sharp_1_1_data_types.html#aaa77d3e1a986cc90a1b9f920579b78d3a6f6cb72d544962fa333e2e34ce64f719">Size</a> = (SizeInBits + minfo.WordSize - 1) / minfo.<a class="code" href="interface_system_sharp_1_1_synthesis_1_1_i_marshal_info.html#ade21d08225261aa9105399b551b807a4">WordSize</a>;</div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;        }</div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;</div>
<div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;        <span class="keyword">public</span> <span class="keywordtype">int</span> NumBits</div>
<div class="line"><a name="l00371"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_enum_memory_layout.html#a179c9e554b585e43b5b3819f205dfe2a">  371</a></span>&#160;        {</div>
<div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;            <span class="keyword">get</span> { <span class="keywordflow">return</span> MathExt.CeilLog2(LayoutedType.CILType.GetEnumValues().Length); }</div>
<div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;        }</div>
<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;</div>
<div class="line"><a name="l00375"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_enum_memory_layout.html#a7d959d8338157b2dbc6b4172c2d77c61">  375</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">override</span> <a class="code" href="struct_system_sharp_1_1_data_types_1_1_std_logic_vector.html">StdLogicVector</a>[] <a class="code" href="class_system_sharp_1_1_synthesis_1_1_enum_memory_layout.html#a7d959d8338157b2dbc6b4172c2d77c61">SerializeInstance</a>(<span class="keywordtype">object</span> instance)</div>
<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;        {</div>
<div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;            Contract.Assert(instance.GetType().Equals(LayoutedType.CILType));</div>
<div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;            var values = LayoutedType.CILType.GetEnumValues();</div>
<div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;            <span class="keywordtype">int</span> index = Array.IndexOf(values, instance);</div>
<div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;            <span class="keywordtype">int</span> wsize = (int)_wordSize;</div>
<div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160;            <span class="keywordtype">int</span> alignedNum = (NumBits + wsize - 1) / wsize * wsize;</div>
<div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;            <a class="code" href="struct_system_sharp_1_1_data_types_1_1_std_logic_vector.html">StdLogicVector</a> vec = StdLogicVector.FromInt(index, alignedNum);</div>
<div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;            <a class="code" href="struct_system_sharp_1_1_data_types_1_1_std_logic_vector.html">StdLogicVector</a>[] result = <span class="keyword">new</span> <a class="code" href="struct_system_sharp_1_1_data_types_1_1_std_logic_vector.html">StdLogicVector</a>[<a class="code" href="namespace_system_sharp_1_1_data_types.html#aaa77d3e1a986cc90a1b9f920579b78d3a6f6cb72d544962fa333e2e34ce64f719">Size</a>];</div>
<div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; (int)<a class="code" href="namespace_system_sharp_1_1_data_types.html#aaa77d3e1a986cc90a1b9f920579b78d3a6f6cb72d544962fa333e2e34ce64f719">Size</a>; i++)</div>
<div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160;            {</div>
<div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;                result[i] = vec[i + wsize - 1, i];</div>
<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;            }</div>
<div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;            <span class="keywordflow">return</span> result;</div>
<div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;        }</div>
<div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;    }</div>
<div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;</div>
<div class="line"><a name="l00395"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_struct_memory_layout.html">  395</a></span>&#160;    <span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="class_system_sharp_1_1_synthesis_1_1_struct_memory_layout.html">StructMemoryLayout</a>: <a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_layout.html">MemoryLayout</a></div>
<div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;    {</div>
<div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;        <span class="keyword">private</span> Dictionary&lt;FieldInfo, FieldLocation&gt; _locations = <span class="keyword">new</span> Dictionary&lt;FieldInfo, FieldLocation&gt;();</div>
<div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;</div>
<div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;        <span class="keyword">internal</span> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_struct_memory_layout.html">StructMemoryLayout</a>(<a class="code" href="class_system_sharp_1_1_meta_1_1_type_descriptor.html">TypeDescriptor</a> layoutedType) :</div>
<div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;            base(layoutedType)</div>
<div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;        {</div>
<div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;        }</div>
<div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;</div>
<div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160;        <span class="keyword">internal</span> <span class="keywordtype">void</span> AddLocation(<a class="code" href="class_system_sharp_1_1_synthesis_1_1_field_location.html">FieldLocation</a> loc)</div>
<div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;        {</div>
<div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;            _locations[loc.Field] = loc;</div>
<div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;        }</div>
<div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160;</div>
<div class="line"><a name="l00414"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_struct_memory_layout.html#a82d61d1749bc378788967a58d72863fb">  414</a></span>&#160;        <span class="keyword">public</span> ulong <a class="code" href="class_system_sharp_1_1_synthesis_1_1_struct_memory_layout.html#a82d61d1749bc378788967a58d72863fb">GetFieldOffset</a>(FieldInfo field)</div>
<div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;        {</div>
<div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;            <span class="keywordflow">return</span> _locations[field].Offset;</div>
<div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;        }</div>
<div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;</div>
<div class="line"><a name="l00424"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_struct_memory_layout.html#a2eaa567e56cf472b2ee245e4fad84ab8">  424</a></span>&#160;        <span class="keyword">public</span> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_layout.html">MemoryLayout</a> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_struct_memory_layout.html#a2eaa567e56cf472b2ee245e4fad84ab8">GetFieldLayout</a>(FieldInfo field)</div>
<div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;        {</div>
<div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160;            <span class="keywordflow">return</span> _locations[field].FieldLayout;</div>
<div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160;        }</div>
<div class="line"><a name="l00428"></a><span class="lineno">  428</span>&#160;</div>
<div class="line"><a name="l00429"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_struct_memory_layout.html#a9d0f2a509f38760b259f158c54ca17a8">  429</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">override</span> <a class="code" href="struct_system_sharp_1_1_data_types_1_1_std_logic_vector.html">StdLogicVector</a>[] <a class="code" href="class_system_sharp_1_1_synthesis_1_1_struct_memory_layout.html#a9d0f2a509f38760b259f158c54ca17a8">SerializeInstance</a>(<span class="keywordtype">object</span> instance)</div>
<div class="line"><a name="l00430"></a><span class="lineno">  430</span>&#160;        {</div>
<div class="line"><a name="l00431"></a><span class="lineno">  431</span>&#160;            <a class="code" href="struct_system_sharp_1_1_data_types_1_1_std_logic_vector.html">StdLogicVector</a>[] result = <span class="keyword">new</span> <a class="code" href="struct_system_sharp_1_1_data_types_1_1_std_logic_vector.html">StdLogicVector</a>[<a class="code" href="namespace_system_sharp_1_1_data_types.html#aaa77d3e1a986cc90a1b9f920579b78d3a6f6cb72d544962fa333e2e34ce64f719">Size</a>];</div>
<div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160;</div>
<div class="line"><a name="l00433"></a><span class="lineno">  433</span>&#160;            <span class="keywordflow">foreach</span> (var kvp <span class="keywordflow">in</span> _locations)</div>
<div class="line"><a name="l00434"></a><span class="lineno">  434</span>&#160;            {</div>
<div class="line"><a name="l00435"></a><span class="lineno">  435</span>&#160;                <a class="code" href="struct_system_sharp_1_1_data_types_1_1_std_logic_vector.html">StdLogicVector</a>[] fieldData =</div>
<div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160;                    kvp.Value.FieldLayout.SerializeInstance(</div>
<div class="line"><a name="l00437"></a><span class="lineno">  437</span>&#160;                        kvp.Key.GetValue(instance));</div>
<div class="line"><a name="l00438"></a><span class="lineno">  438</span>&#160;                Array.Copy(fieldData, 0, result, (int)kvp.Value.Offset, fieldData.Length);</div>
<div class="line"><a name="l00439"></a><span class="lineno">  439</span>&#160;            }</div>
<div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160;</div>
<div class="line"><a name="l00441"></a><span class="lineno">  441</span>&#160;            <span class="keywordflow">return</span> result;</div>
<div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160;        }</div>
<div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160;    }</div>
<div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160;</div>
<div class="line"><a name="l00448"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_empty_memory_layout.html">  448</a></span>&#160;    <span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="class_system_sharp_1_1_synthesis_1_1_empty_memory_layout.html">EmptyMemoryLayout</a> : <a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_layout.html">MemoryLayout</a></div>
<div class="line"><a name="l00449"></a><span class="lineno">  449</span>&#160;    {</div>
<div class="line"><a name="l00450"></a><span class="lineno">  450</span>&#160;        <span class="keyword">internal</span> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_empty_memory_layout.html">EmptyMemoryLayout</a>(<a class="code" href="class_system_sharp_1_1_meta_1_1_type_descriptor.html">TypeDescriptor</a> layoutedType) :</div>
<div class="line"><a name="l00451"></a><span class="lineno">  451</span>&#160;            base(layoutedType)</div>
<div class="line"><a name="l00452"></a><span class="lineno">  452</span>&#160;        {</div>
<div class="line"><a name="l00453"></a><span class="lineno">  453</span>&#160;        }</div>
<div class="line"><a name="l00454"></a><span class="lineno">  454</span>&#160;</div>
<div class="line"><a name="l00455"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_empty_memory_layout.html#a28543836840027d50e09f163090d0e65">  455</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">override</span> <a class="code" href="struct_system_sharp_1_1_data_types_1_1_std_logic_vector.html">StdLogicVector</a>[] <a class="code" href="class_system_sharp_1_1_synthesis_1_1_empty_memory_layout.html#a28543836840027d50e09f163090d0e65">SerializeInstance</a>(<span class="keywordtype">object</span> instance)</div>
<div class="line"><a name="l00456"></a><span class="lineno">  456</span>&#160;        {</div>
<div class="line"><a name="l00457"></a><span class="lineno">  457</span>&#160;            <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="struct_system_sharp_1_1_data_types_1_1_std_logic_vector.html">StdLogicVector</a>[0];</div>
<div class="line"><a name="l00458"></a><span class="lineno">  458</span>&#160;        }</div>
<div class="line"><a name="l00459"></a><span class="lineno">  459</span>&#160;    }</div>
<div class="line"><a name="l00460"></a><span class="lineno">  460</span>&#160;</div>
<div class="line"><a name="l00464"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_array_memory_layout.html">  464</a></span>&#160;    <span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="class_system_sharp_1_1_synthesis_1_1_array_memory_layout.html">ArrayMemoryLayout</a> : <a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_layout.html">MemoryLayout</a></div>
<div class="line"><a name="l00465"></a><span class="lineno">  465</span>&#160;    {</div>
<div class="line"><a name="l00469"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_array_memory_layout.html#a13a1f7c9c59f51e5c06922c27de57ee5">  469</a></span>&#160;        <span class="keyword">public</span> uint WordSize { <span class="keyword">get</span>; <span class="keyword">private</span> set; }</div>
<div class="line"><a name="l00470"></a><span class="lineno">  470</span>&#160;</div>
<div class="line"><a name="l00474"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_array_memory_layout.html#a8b9d085fe4e2d673d5c40fa1b967e4c6">  474</a></span>&#160;        <span class="keyword">public</span> ulong[] Strides { <span class="keyword">get</span>; <span class="keyword">private</span> set; }</div>
<div class="line"><a name="l00475"></a><span class="lineno">  475</span>&#160;</div>
<div class="line"><a name="l00479"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_array_memory_layout.html#ae53fef8bc567b9604bae77c40041c651">  479</a></span>&#160;        <span class="keyword">public</span> ulong SubStride { <span class="keyword">get</span>; <span class="keyword">private</span> set; }</div>
<div class="line"><a name="l00480"></a><span class="lineno">  480</span>&#160;</div>
<div class="line"><a name="l00484"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_array_memory_layout.html#afd1e4e89d063a1667eceb2a589451146">  484</a></span>&#160;        <span class="keyword">public</span> uint ElementsPerWord { <span class="keyword">get</span>; <span class="keyword">private</span> set; }</div>
<div class="line"><a name="l00485"></a><span class="lineno">  485</span>&#160;</div>
<div class="line"><a name="l00489"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_array_memory_layout.html#a29383ee84fb1ba4c63f40c50da369bd9">  489</a></span>&#160;        <span class="keyword">public</span> uint WordsPerElement { <span class="keyword">get</span>; <span class="keyword">private</span> set; }</div>
<div class="line"><a name="l00490"></a><span class="lineno">  490</span>&#160;</div>
<div class="line"><a name="l00494"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_array_memory_layout.html#a5768033f75508a6c9be4dc1c6c7b76b9">  494</a></span>&#160;        <span class="keyword">public</span> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_layout.html">MemoryLayout</a> ElementLayout { <span class="keyword">get</span>; <span class="keyword">private</span> set; }</div>
<div class="line"><a name="l00495"></a><span class="lineno">  495</span>&#160;</div>
<div class="line"><a name="l00496"></a><span class="lineno">  496</span>&#160;        <span class="keyword">internal</span> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_array_memory_layout.html">ArrayMemoryLayout</a>(<a class="code" href="class_system_sharp_1_1_meta_1_1_type_descriptor.html">TypeDescriptor</a> layoutedType, </div>
<div class="line"><a name="l00497"></a><span class="lineno">  497</span>&#160;            uint wordSize,</div>
<div class="line"><a name="l00498"></a><span class="lineno">  498</span>&#160;            ulong[] strides, ulong subStride, uint elementsPerWord, uint wordsPerElement, <a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_layout.html">MemoryLayout</a> elementLayout) :</div>
<div class="line"><a name="l00499"></a><span class="lineno">  499</span>&#160;            base(layoutedType)</div>
<div class="line"><a name="l00500"></a><span class="lineno">  500</span>&#160;        {</div>
<div class="line"><a name="l00501"></a><span class="lineno">  501</span>&#160;            Contract.Requires(layoutedType != null);</div>
<div class="line"><a name="l00502"></a><span class="lineno">  502</span>&#160;            Contract.Requires(wordSize &gt;= 1);</div>
<div class="line"><a name="l00503"></a><span class="lineno">  503</span>&#160;            Contract.Requires(strides != null);</div>
<div class="line"><a name="l00504"></a><span class="lineno">  504</span>&#160;            Contract.Requires(strides.Length &gt;= 1);</div>
<div class="line"><a name="l00505"></a><span class="lineno">  505</span>&#160;            Contract.Requires(strides.Take(strides.Length - 1).All(n =&gt; n &gt;= 1));</div>
<div class="line"><a name="l00506"></a><span class="lineno">  506</span>&#160;            Contract.Requires(elementLayout != null);</div>
<div class="line"><a name="l00507"></a><span class="lineno">  507</span>&#160;</div>
<div class="line"><a name="l00508"></a><span class="lineno">  508</span>&#160;            WordSize = wordSize;</div>
<div class="line"><a name="l00509"></a><span class="lineno">  509</span>&#160;            Strides = strides;</div>
<div class="line"><a name="l00510"></a><span class="lineno">  510</span>&#160;            SubStride = subStride;</div>
<div class="line"><a name="l00511"></a><span class="lineno">  511</span>&#160;            ElementsPerWord = elementsPerWord;</div>
<div class="line"><a name="l00512"></a><span class="lineno">  512</span>&#160;            WordsPerElement = wordsPerElement;</div>
<div class="line"><a name="l00513"></a><span class="lineno">  513</span>&#160;            ElementLayout = elementLayout;</div>
<div class="line"><a name="l00514"></a><span class="lineno">  514</span>&#160;        }</div>
<div class="line"><a name="l00515"></a><span class="lineno">  515</span>&#160;</div>
<div class="line"><a name="l00516"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_array_memory_layout.html#addd5ef0f1539f97876523693afb70d68">  516</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">override</span> <a class="code" href="struct_system_sharp_1_1_data_types_1_1_std_logic_vector.html">StdLogicVector</a>[] <a class="code" href="class_system_sharp_1_1_synthesis_1_1_array_memory_layout.html#addd5ef0f1539f97876523693afb70d68">SerializeInstance</a>(<span class="keywordtype">object</span> instance)</div>
<div class="line"><a name="l00517"></a><span class="lineno">  517</span>&#160;        {</div>
<div class="line"><a name="l00518"></a><span class="lineno">  518</span>&#160;            Array array = (Array)instance;</div>
<div class="line"><a name="l00519"></a><span class="lineno">  519</span>&#160;            IEnumerable&lt;object&gt; elements = array.Cast&lt;<span class="keywordtype">object</span>&gt;();</div>
<div class="line"><a name="l00520"></a><span class="lineno">  520</span>&#160;            <span class="keywordtype">int</span> rank = Strides.Length;</div>
<div class="line"><a name="l00521"></a><span class="lineno">  521</span>&#160;            <span class="keywordtype">int</span>[] curSrcIndex = <span class="keyword">new</span> <span class="keywordtype">int</span>[rank];</div>
<div class="line"><a name="l00522"></a><span class="lineno">  522</span>&#160;            <span class="keywordtype">int</span> curDstIndex = 0;</div>
<div class="line"><a name="l00523"></a><span class="lineno">  523</span>&#160;            <span class="keywordtype">int</span> curSubIndex = 0;</div>
<div class="line"><a name="l00524"></a><span class="lineno">  524</span>&#160;            <a class="code" href="struct_system_sharp_1_1_data_types_1_1_std_logic_vector.html">StdLogicVector</a>[] result = Enumerable.Repeat(</div>
<div class="line"><a name="l00525"></a><span class="lineno">  525</span>&#160;                StdLogicVector._0s(WordSize), array.GetLength(0) * (int)Strides[0])</div>
<div class="line"><a name="l00526"></a><span class="lineno">  526</span>&#160;                .ToArray();</div>
<div class="line"><a name="l00527"></a><span class="lineno">  527</span>&#160;            <span class="keywordflow">foreach</span> (<span class="keywordtype">object</span> element <span class="keywordflow">in</span> elements)</div>
<div class="line"><a name="l00528"></a><span class="lineno">  528</span>&#160;            {</div>
<div class="line"><a name="l00529"></a><span class="lineno">  529</span>&#160;                <a class="code" href="struct_system_sharp_1_1_data_types_1_1_std_logic_vector.html">StdLogicVector</a>[] elementData = ElementLayout.SerializeInstance(element);</div>
<div class="line"><a name="l00530"></a><span class="lineno">  530</span>&#160;                curDstIndex = 0;</div>
<div class="line"><a name="l00531"></a><span class="lineno">  531</span>&#160;                <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; rank; i++)</div>
<div class="line"><a name="l00532"></a><span class="lineno">  532</span>&#160;                {</div>
<div class="line"><a name="l00533"></a><span class="lineno">  533</span>&#160;                    curDstIndex += (int)Strides[i] * curSrcIndex[i];</div>
<div class="line"><a name="l00534"></a><span class="lineno">  534</span>&#160;                }</div>
<div class="line"><a name="l00535"></a><span class="lineno">  535</span>&#160;                <span class="keywordflow">if</span> (SubStride == 0)</div>
<div class="line"><a name="l00536"></a><span class="lineno">  536</span>&#160;                {</div>
<div class="line"><a name="l00537"></a><span class="lineno">  537</span>&#160;                    Array.Copy(elementData, 0, result, curDstIndex, elementData.Length);</div>
<div class="line"><a name="l00538"></a><span class="lineno">  538</span>&#160;                }</div>
<div class="line"><a name="l00539"></a><span class="lineno">  539</span>&#160;                <span class="keywordflow">else</span></div>
<div class="line"><a name="l00540"></a><span class="lineno">  540</span>&#160;                {</div>
<div class="line"><a name="l00541"></a><span class="lineno">  541</span>&#160;                    Debug.Assert(elementData.Length == 1);</div>
<div class="line"><a name="l00542"></a><span class="lineno">  542</span>&#160;                    result[curDstIndex][(curSubIndex+1) * (<span class="keywordtype">int</span>)SubStride - 1, curSubIndex * (int)SubStride] = </div>
<div class="line"><a name="l00543"></a><span class="lineno">  543</span>&#160;                        elementData[0][(<span class="keywordtype">int</span>)SubStride - 1, 0];</div>
<div class="line"><a name="l00544"></a><span class="lineno">  544</span>&#160;                    <span class="keywordflow">if</span> (++curSubIndex == ElementsPerWord)</div>
<div class="line"><a name="l00545"></a><span class="lineno">  545</span>&#160;                    {</div>
<div class="line"><a name="l00546"></a><span class="lineno">  546</span>&#160;                        curSubIndex = 0;</div>
<div class="line"><a name="l00547"></a><span class="lineno">  547</span>&#160;                    }</div>
<div class="line"><a name="l00548"></a><span class="lineno">  548</span>&#160;                    <span class="keywordflow">else</span></div>
<div class="line"><a name="l00549"></a><span class="lineno">  549</span>&#160;                    {</div>
<div class="line"><a name="l00550"></a><span class="lineno">  550</span>&#160;                        <span class="keywordflow">continue</span>;</div>
<div class="line"><a name="l00551"></a><span class="lineno">  551</span>&#160;                    }</div>
<div class="line"><a name="l00552"></a><span class="lineno">  552</span>&#160;                }</div>
<div class="line"><a name="l00553"></a><span class="lineno">  553</span>&#160;                <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = rank - 1; i &gt;= 0; i--)</div>
<div class="line"><a name="l00554"></a><span class="lineno">  554</span>&#160;                {</div>
<div class="line"><a name="l00555"></a><span class="lineno">  555</span>&#160;                    <span class="keywordflow">if</span> (++curSrcIndex[i] == array.GetLength(i))</div>
<div class="line"><a name="l00556"></a><span class="lineno">  556</span>&#160;                        curSrcIndex[i] = 0;</div>
<div class="line"><a name="l00557"></a><span class="lineno">  557</span>&#160;                    <span class="keywordflow">else</span></div>
<div class="line"><a name="l00558"></a><span class="lineno">  558</span>&#160;                        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00559"></a><span class="lineno">  559</span>&#160;                }</div>
<div class="line"><a name="l00560"></a><span class="lineno">  560</span>&#160;            }</div>
<div class="line"><a name="l00561"></a><span class="lineno">  561</span>&#160;            <span class="keywordflow">return</span> result;</div>
<div class="line"><a name="l00562"></a><span class="lineno">  562</span>&#160;        }</div>
<div class="line"><a name="l00563"></a><span class="lineno">  563</span>&#160;    }</div>
<div class="line"><a name="l00564"></a><span class="lineno">  564</span>&#160;</div>
<div class="line"><a name="l00568"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_marshal.html">  568</a></span>&#160;    <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">class </span><a class="code" href="class_system_sharp_1_1_synthesis_1_1_marshal.html">Marshal</a></div>
<div class="line"><a name="l00569"></a><span class="lineno">  569</span>&#160;    {</div>
<div class="line"><a name="l00576"></a><span class="lineno">  576</span>&#160;        <span class="keyword">private</span> <span class="keyword">static</span> ulong BitsToWords(<span class="keywordtype">long</span> numBits, <a class="code" href="interface_system_sharp_1_1_synthesis_1_1_i_marshal_info.html">IMarshalInfo</a> info)</div>
<div class="line"><a name="l00577"></a><span class="lineno">  577</span>&#160;        {</div>
<div class="line"><a name="l00578"></a><span class="lineno">  578</span>&#160;            <span class="keywordflow">return</span> (ulong)((numBits + info.WordSize - 1) / info.<a class="code" href="interface_system_sharp_1_1_synthesis_1_1_i_marshal_info.html#ade21d08225261aa9105399b551b807a4">WordSize</a>);</div>
<div class="line"><a name="l00579"></a><span class="lineno">  579</span>&#160;        }</div>
<div class="line"><a name="l00580"></a><span class="lineno">  580</span>&#160;</div>
<div class="line"><a name="l00581"></a><span class="lineno">  581</span>&#160;        <span class="keyword">private</span> <span class="keyword">static</span> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_layout.html">MemoryLayout</a> CreatePrimLayout(<span class="keywordtype">long</span> numBits, <a class="code" href="class_system_sharp_1_1_meta_1_1_type_descriptor.html">TypeDescriptor</a> type, <a class="code" href="interface_system_sharp_1_1_synthesis_1_1_i_marshal_info.html">IMarshalInfo</a> info)</div>
<div class="line"><a name="l00582"></a><span class="lineno">  582</span>&#160;        {</div>
<div class="line"><a name="l00583"></a><span class="lineno">  583</span>&#160;            ulong numWords = BitsToWords(numBits, info);</div>
<div class="line"><a name="l00584"></a><span class="lineno">  584</span>&#160;            <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_prim_memory_layout.html">PrimMemoryLayout</a>(type, (<span class="keywordtype">int</span>)info.<a class="code" href="interface_system_sharp_1_1_synthesis_1_1_i_marshal_info.html#ade21d08225261aa9105399b551b807a4">WordSize</a>)</div>
<div class="line"><a name="l00585"></a><span class="lineno">  585</span>&#160;            {</div>
<div class="line"><a name="l00586"></a><span class="lineno">  586</span>&#160;                <a class="code" href="namespace_system_sharp_1_1_data_types.html#aaa77d3e1a986cc90a1b9f920579b78d3a6f6cb72d544962fa333e2e34ce64f719">Size</a> = numWords,</div>
<div class="line"><a name="l00587"></a><span class="lineno">  587</span>&#160;                SizeInBits = (ulong)numBits</div>
<div class="line"><a name="l00588"></a><span class="lineno">  588</span>&#160;            };</div>
<div class="line"><a name="l00589"></a><span class="lineno">  589</span>&#160;        }</div>
<div class="line"><a name="l00590"></a><span class="lineno">  590</span>&#160;</div>
<div class="line"><a name="l00597"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_marshal.html#adc5c394cc4173ce52d7f7b46e2124344">  597</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_layout.html">MemoryLayout</a> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_marshal.html#adc5c394cc4173ce52d7f7b46e2124344">Layout</a>(<a class="code" href="class_system_sharp_1_1_meta_1_1_type_descriptor.html">TypeDescriptor</a> td, <a class="code" href="interface_system_sharp_1_1_synthesis_1_1_i_marshal_info.html">IMarshalInfo</a> info)</div>
<div class="line"><a name="l00598"></a><span class="lineno">  598</span>&#160;        {</div>
<div class="line"><a name="l00599"></a><span class="lineno">  599</span>&#160;            Type type = td.CILType;</div>
<div class="line"><a name="l00600"></a><span class="lineno">  600</span>&#160;            <a class="code" href="interface_system_sharp_1_1_synthesis_1_1_i_serializer.html">ISerializer</a> ser = SLVSerializable.TryGetSerializer(type);</div>
<div class="line"><a name="l00601"></a><span class="lineno">  601</span>&#160;            <span class="keywordflow">if</span> (ser != null)</div>
<div class="line"><a name="l00602"></a><span class="lineno">  602</span>&#160;            {</div>
<div class="line"><a name="l00603"></a><span class="lineno">  603</span>&#160;                <span class="keywordtype">object</span> sample = td.GetSampleInstance();</div>
<div class="line"><a name="l00604"></a><span class="lineno">  604</span>&#160;                <span class="keywordflow">return</span> CreatePrimLayout(ser.<a class="code" href="interface_system_sharp_1_1_synthesis_1_1_i_serializer.html#a0e96707519704b35bb8afc0ece7d5155">Serialize</a>(sample).Size, td, info);</div>
<div class="line"><a name="l00605"></a><span class="lineno">  605</span>&#160;            }</div>
<div class="line"><a name="l00606"></a><span class="lineno">  606</span>&#160;            <span class="keywordflow">if</span> (ser == null &amp;&amp; td.<a class="code" href="class_system_sharp_1_1_meta_1_1_type_descriptor.html#a2304c78f42e22f2ebbbaa6ee3e46ed05">HasIntrinsicTypeOverride</a>)</div>
<div class="line"><a name="l00607"></a><span class="lineno">  607</span>&#160;                <span class="keywordflow">throw</span> <span class="keyword">new</span> InvalidOperationException(<span class="stringliteral">&quot;Type &quot;</span> + type.Name + <span class="stringliteral">&quot; has intrinsic type override but no serializer&quot;</span>);</div>
<div class="line"><a name="l00608"></a><span class="lineno">  608</span>&#160;            <span class="keywordflow">if</span> (type.IsEnum)</div>
<div class="line"><a name="l00609"></a><span class="lineno">  609</span>&#160;            {</div>
<div class="line"><a name="l00610"></a><span class="lineno">  610</span>&#160;                <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_enum_memory_layout.html">EnumMemoryLayout</a>(td, info);</div>
<div class="line"><a name="l00611"></a><span class="lineno">  611</span>&#160;            }</div>
<div class="line"><a name="l00612"></a><span class="lineno">  612</span>&#160;            <span class="keywordflow">if</span> (type.IsArray)</div>
<div class="line"><a name="l00613"></a><span class="lineno">  613</span>&#160;            {</div>
<div class="line"><a name="l00614"></a><span class="lineno">  614</span>&#160;                td.AssertStatic();</div>
<div class="line"><a name="l00615"></a><span class="lineno">  615</span>&#160;                <a class="code" href="class_system_sharp_1_1_meta_1_1_type_descriptor.html">TypeDescriptor</a> elemTd = td.Element0Type;</div>
<div class="line"><a name="l00616"></a><span class="lineno">  616</span>&#160;                <a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_layout.html">MemoryLayout</a> elemLayout = Layout(elemTd, info);</div>
<div class="line"><a name="l00617"></a><span class="lineno">  617</span>&#160;                ulong subStride = elemLayout.SizeInBits;</div>
<div class="line"><a name="l00618"></a><span class="lineno">  618</span>&#160;                <span class="keywordflow">if</span> (subStride == 0)</div>
<div class="line"><a name="l00619"></a><span class="lineno">  619</span>&#160;                {</div>
<div class="line"><a name="l00620"></a><span class="lineno">  620</span>&#160;                    <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_empty_memory_layout.html">EmptyMemoryLayout</a>(td)</div>
<div class="line"><a name="l00621"></a><span class="lineno">  621</span>&#160;                    {</div>
<div class="line"><a name="l00622"></a><span class="lineno">  622</span>&#160;                        <a class="code" href="namespace_system_sharp_1_1_data_types.html#aaa77d3e1a986cc90a1b9f920579b78d3a6f6cb72d544962fa333e2e34ce64f719">Size</a> = 0,</div>
<div class="line"><a name="l00623"></a><span class="lineno">  623</span>&#160;                        SizeInBits = 0</div>
<div class="line"><a name="l00624"></a><span class="lineno">  624</span>&#160;                    };</div>
<div class="line"><a name="l00625"></a><span class="lineno">  625</span>&#160;                }</div>
<div class="line"><a name="l00626"></a><span class="lineno">  626</span>&#160;                ulong[] strides = <span class="keyword">new</span> ulong[type.GetArrayRank()];</div>
<div class="line"><a name="l00627"></a><span class="lineno">  627</span>&#160;                ulong elemsPerWord = (ulong)info.<a class="code" href="interface_system_sharp_1_1_synthesis_1_1_i_marshal_info.html#ade21d08225261aa9105399b551b807a4">WordSize</a> / elemLayout.<a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_layout.html#ae7b683cddf414b8dc64b38bf824ce89a">SizeInBits</a>;</div>
<div class="line"><a name="l00628"></a><span class="lineno">  628</span>&#160;                ulong wordsPerElem = elemLayout.<a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_layout.html#a723172ac20b1f8385a3445b95e29d1c6">Size</a>;</div>
<div class="line"><a name="l00629"></a><span class="lineno">  629</span>&#160;                if (elemsPerWord &gt; 1)</div>
<div class="line"><a name="l00630"></a><span class="lineno">  630</span>&#160;                {</div>
<div class="line"><a name="l00631"></a><span class="lineno">  631</span>&#160;                    <span class="keywordflow">if</span> (info.<a class="code" href="interface_system_sharp_1_1_synthesis_1_1_i_marshal_info.html#a6889bbbc7866fbf48a9233ccfc6d0f7a">UseArraySubWordAlignment</a>)</div>
<div class="line"><a name="l00632"></a><span class="lineno">  632</span>&#160;                    {</div>
<div class="line"><a name="l00633"></a><span class="lineno">  633</span>&#160;                        <span class="keywordflow">if</span> (info.<a class="code" href="interface_system_sharp_1_1_synthesis_1_1_i_marshal_info.html#ade9c987c3a3711d329a5ea58d008e846">UseArrayDimPow2Alignment</a>)</div>
<div class="line"><a name="l00634"></a><span class="lineno">  634</span>&#160;                        {</div>
<div class="line"><a name="l00635"></a><span class="lineno">  635</span>&#160;                            elemsPerWord = MathExt.FloorPow2(elemsPerWord);</div>
<div class="line"><a name="l00636"></a><span class="lineno">  636</span>&#160;                            subStride = info.WordSize / elemsPerWord;</div>
<div class="line"><a name="l00637"></a><span class="lineno">  637</span>&#160;                        }</div>
<div class="line"><a name="l00638"></a><span class="lineno">  638</span>&#160;                    }</div>
<div class="line"><a name="l00639"></a><span class="lineno">  639</span>&#160;                    <span class="keywordflow">else</span></div>
<div class="line"><a name="l00640"></a><span class="lineno">  640</span>&#160;                    {</div>
<div class="line"><a name="l00641"></a><span class="lineno">  641</span>&#160;                        elemsPerWord = 1;</div>
<div class="line"><a name="l00642"></a><span class="lineno">  642</span>&#160;                    }</div>
<div class="line"><a name="l00643"></a><span class="lineno">  643</span>&#160;                }</div>
<div class="line"><a name="l00644"></a><span class="lineno">  644</span>&#160;                ulong dimSize = (ulong)(<span class="keywordtype">int</span>)td.TypeParams.Last(); </div>
<div class="line"><a name="l00645"></a><span class="lineno">  645</span>&#160;                ulong dimWords;</div>
<div class="line"><a name="l00646"></a><span class="lineno">  646</span>&#160;                <span class="keywordflow">if</span> (elemsPerWord &lt;= 1)</div>
<div class="line"><a name="l00647"></a><span class="lineno">  647</span>&#160;                {</div>
<div class="line"><a name="l00648"></a><span class="lineno">  648</span>&#160;                    subStride = 0;</div>
<div class="line"><a name="l00649"></a><span class="lineno">  649</span>&#160;                    <span class="keywordflow">if</span> (info.<a class="code" href="interface_system_sharp_1_1_synthesis_1_1_i_marshal_info.html#ade9c987c3a3711d329a5ea58d008e846">UseArrayDimPow2Alignment</a>)</div>
<div class="line"><a name="l00650"></a><span class="lineno">  650</span>&#160;                        wordsPerElem = MathExt.CeilPow2(wordsPerElem);</div>
<div class="line"><a name="l00651"></a><span class="lineno">  651</span>&#160;                    dimWords = wordsPerElem * dimSize;</div>
<div class="line"><a name="l00652"></a><span class="lineno">  652</span>&#160;                }</div>
<div class="line"><a name="l00653"></a><span class="lineno">  653</span>&#160;                <span class="keywordflow">else</span></div>
<div class="line"><a name="l00654"></a><span class="lineno">  654</span>&#160;                {</div>
<div class="line"><a name="l00655"></a><span class="lineno">  655</span>&#160;                    wordsPerElem = 0;</div>
<div class="line"><a name="l00656"></a><span class="lineno">  656</span>&#160;                    dimWords = (dimSize + elemsPerWord - 1) / elemsPerWord;</div>
<div class="line"><a name="l00657"></a><span class="lineno">  657</span>&#160;                }</div>
<div class="line"><a name="l00658"></a><span class="lineno">  658</span>&#160;                strides[strides.Length-1] = wordsPerElem;</div>
<div class="line"><a name="l00659"></a><span class="lineno">  659</span>&#160;                <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = strides.Length-2; i &gt;= 0; i--)</div>
<div class="line"><a name="l00660"></a><span class="lineno">  660</span>&#160;                {</div>
<div class="line"><a name="l00661"></a><span class="lineno">  661</span>&#160;                    <span class="keywordflow">if</span> (info.<a class="code" href="interface_system_sharp_1_1_synthesis_1_1_i_marshal_info.html#ade9c987c3a3711d329a5ea58d008e846">UseArrayDimPow2Alignment</a>)</div>
<div class="line"><a name="l00662"></a><span class="lineno">  662</span>&#160;                        dimWords = MathExt.CeilPow2(dimWords);</div>
<div class="line"><a name="l00663"></a><span class="lineno">  663</span>&#160;                    strides[i] = dimWords;</div>
<div class="line"><a name="l00664"></a><span class="lineno">  664</span>&#160;                    dimSize = (ulong)(<span class="keywordtype">int</span>)td.TypeParams[i];</div>
<div class="line"><a name="l00665"></a><span class="lineno">  665</span>&#160;                    dimWords *= dimSize;</div>
<div class="line"><a name="l00666"></a><span class="lineno">  666</span>&#160;                }</div>
<div class="line"><a name="l00667"></a><span class="lineno">  667</span>&#160;                <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_array_memory_layout.html">ArrayMemoryLayout</a>(td, info.<a class="code" href="interface_system_sharp_1_1_synthesis_1_1_i_marshal_info.html#ade21d08225261aa9105399b551b807a4">WordSize</a>, strides, subStride, (uint)elemsPerWord, (uint)wordsPerElem, elemLayout)</div>
<div class="line"><a name="l00668"></a><span class="lineno">  668</span>&#160;                {</div>
<div class="line"><a name="l00669"></a><span class="lineno">  669</span>&#160;                    <a class="code" href="namespace_system_sharp_1_1_data_types.html#aaa77d3e1a986cc90a1b9f920579b78d3a6f6cb72d544962fa333e2e34ce64f719">Size</a> = dimWords,</div>
<div class="line"><a name="l00670"></a><span class="lineno">  670</span>&#160;                    SizeInBits = dimWords * info.WordSize</div>
<div class="line"><a name="l00671"></a><span class="lineno">  671</span>&#160;                };</div>
<div class="line"><a name="l00672"></a><span class="lineno">  672</span>&#160;            }</div>
<div class="line"><a name="l00673"></a><span class="lineno">  673</span>&#160;            <span class="keywordflow">if</span> (type.IsValueType &amp;&amp; !type.IsPrimitive)</div>
<div class="line"><a name="l00674"></a><span class="lineno">  674</span>&#160;            {</div>
<div class="line"><a name="l00675"></a><span class="lineno">  675</span>&#160;                <a class="code" href="class_system_sharp_1_1_synthesis_1_1_struct_memory_layout.html">StructMemoryLayout</a> ml = <span class="keyword">new</span> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_struct_memory_layout.html">StructMemoryLayout</a>(td);</div>
<div class="line"><a name="l00676"></a><span class="lineno">  676</span>&#160;                FieldInfo[] fields = type.GetFields(</div>
<div class="line"><a name="l00677"></a><span class="lineno">  677</span>&#160;                    BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance);</div>
<div class="line"><a name="l00678"></a><span class="lineno">  678</span>&#160;                ulong offset = 0;</div>
<div class="line"><a name="l00679"></a><span class="lineno">  679</span>&#160;                <span class="keywordflow">foreach</span> (FieldInfo field <span class="keywordflow">in</span> fields)</div>
<div class="line"><a name="l00680"></a><span class="lineno">  680</span>&#160;                {</div>
<div class="line"><a name="l00681"></a><span class="lineno">  681</span>&#160;                    <a class="code" href="class_system_sharp_1_1_meta_1_1_type_descriptor.html">TypeDescriptor</a> fieldTd = td.GetFieldType(field);</div>
<div class="line"><a name="l00682"></a><span class="lineno">  682</span>&#160;                    <a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_layout.html">MemoryLayout</a> fieldLayout = Layout(fieldTd, info);</div>
<div class="line"><a name="l00683"></a><span class="lineno">  683</span>&#160;                    <a class="code" href="class_system_sharp_1_1_synthesis_1_1_field_location.html">FieldLocation</a> fieldLoc = <span class="keyword">new</span> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_field_location.html">FieldLocation</a>(field, fieldLayout, offset);</div>
<div class="line"><a name="l00684"></a><span class="lineno">  684</span>&#160;                    ml.AddLocation(fieldLoc);</div>
<div class="line"><a name="l00685"></a><span class="lineno">  685</span>&#160;                    offset += fieldLayout.Size;</div>
<div class="line"><a name="l00686"></a><span class="lineno">  686</span>&#160;                }</div>
<div class="line"><a name="l00687"></a><span class="lineno">  687</span>&#160;                ml.Size = offset;</div>
<div class="line"><a name="l00688"></a><span class="lineno">  688</span>&#160;                ml.SizeInBits = offset * info.WordSize;</div>
<div class="line"><a name="l00689"></a><span class="lineno">  689</span>&#160;                <span class="keywordflow">return</span> ml;</div>
<div class="line"><a name="l00690"></a><span class="lineno">  690</span>&#160;            }</div>
<div class="line"><a name="l00691"></a><span class="lineno">  691</span>&#160;</div>
<div class="line"><a name="l00692"></a><span class="lineno">  692</span>&#160;            <span class="keywordflow">throw</span> <span class="keyword">new</span> InvalidOperationException(<span class="stringliteral">&quot;Unable to create data layout for type &quot;</span> + type.Name);</div>
<div class="line"><a name="l00693"></a><span class="lineno">  693</span>&#160;        }</div>
<div class="line"><a name="l00694"></a><span class="lineno">  694</span>&#160;</div>
<div class="line"><a name="l00701"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_marshal.html#ac01bb04103983e58b27227a3c3ce105a">  701</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> <a class="code" href="struct_system_sharp_1_1_data_types_1_1_std_logic_vector.html">StdLogicVector</a>[] <a class="code" href="class_system_sharp_1_1_synthesis_1_1_marshal.html#ac01bb04103983e58b27227a3c3ce105a">Serialize</a>(<span class="keywordtype">object</span> value, <a class="code" href="interface_system_sharp_1_1_synthesis_1_1_i_marshal_info.html">IMarshalInfo</a> minfo)</div>
<div class="line"><a name="l00702"></a><span class="lineno">  702</span>&#160;        {</div>
<div class="line"><a name="l00703"></a><span class="lineno">  703</span>&#160;            var layout = Layout(<a class="code" href="class_system_sharp_1_1_meta_1_1_type_descriptor.html">TypeDescriptor</a>.<a class="code" href="class_system_sharp_1_1_meta_1_1_type_descriptor.html#adb47566120cd2ba4ea2fa81cf527d42b">GetTypeOf</a>(value), minfo);</div>
<div class="line"><a name="l00704"></a><span class="lineno">  704</span>&#160;            <span class="keywordflow">return</span> layout.SerializeInstance(value);</div>
<div class="line"><a name="l00705"></a><span class="lineno">  705</span>&#160;        }</div>
<div class="line"><a name="l00706"></a><span class="lineno">  706</span>&#160;</div>
<div class="line"><a name="l00712"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_marshal.html#a7576912e527c65134e2825b86833d686">  712</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> <a class="code" href="struct_system_sharp_1_1_data_types_1_1_std_logic_vector.html">StdLogicVector</a> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_marshal.html#a7576912e527c65134e2825b86833d686">SerializeForHW</a>(<span class="keywordtype">object</span> value)</div>
<div class="line"><a name="l00713"></a><span class="lineno">  713</span>&#160;        {</div>
<div class="line"><a name="l00714"></a><span class="lineno">  714</span>&#160;            <span class="comment">// For pure optimization reasons: Shortcut for two most</span></div>
<div class="line"><a name="l00715"></a><span class="lineno">  715</span>&#160;            <span class="comment">// common datatypes.</span></div>
<div class="line"><a name="l00716"></a><span class="lineno">  716</span>&#160;            <span class="keywordflow">if</span> (value is <a class="code" href="struct_system_sharp_1_1_data_types_1_1_std_logic_vector.html">StdLogicVector</a>)</div>
<div class="line"><a name="l00717"></a><span class="lineno">  717</span>&#160;                <span class="keywordflow">return</span> (StdLogicVector)value;</div>
<div class="line"><a name="l00718"></a><span class="lineno">  718</span>&#160;            <span class="keywordflow">else</span> <span class="keywordflow">if</span> (value is <a class="code" href="struct_system_sharp_1_1_data_types_1_1_std_logic.html">StdLogic</a>)</div>
<div class="line"><a name="l00719"></a><span class="lineno">  719</span>&#160;                <span class="keywordflow">return</span> ((StdLogic)value).Concat(<span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00720"></a><span class="lineno">  720</span>&#160;</div>
<div class="line"><a name="l00721"></a><span class="lineno">  721</span>&#160;            var slvs = Serialize(value, <a class="code" href="class_system_sharp_1_1_synthesis_1_1_h_w_marshal_info.html">HWMarshalInfo</a>.<a class="code" href="class_system_sharp_1_1_synthesis_1_1_h_w_marshal_info.html#a340a22f9bc68b98ceaa3bc2390849129">Instance</a>);</div>
<div class="line"><a name="l00722"></a><span class="lineno">  722</span>&#160;            <span class="keywordflow">return</span> slvs.Select(slv =&gt; slv[0]).ToArray();</div>
<div class="line"><a name="l00723"></a><span class="lineno">  723</span>&#160;        }</div>
<div class="line"><a name="l00724"></a><span class="lineno">  724</span>&#160;    }</div>
<div class="line"><a name="l00725"></a><span class="lineno">  725</span>&#160;</div>
<div class="line"><a name="l00729"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_memory_region.html">  729</a></span>&#160;    <span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_region.html">MemoryRegion</a></div>
<div class="line"><a name="l00730"></a><span class="lineno">  730</span>&#160;    {</div>
<div class="line"><a name="l00734"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_memory_region.html#a15ab98591233b62a90ec6ca5b0dd1404">  734</a></span>&#160;        <span class="keyword">public</span> <a class="code" href="interface_system_sharp_1_1_synthesis_1_1_i_marshal_info.html">IMarshalInfo</a> MarshalInfo { <span class="keyword">get</span>; <span class="keyword">private</span> set; }</div>
<div class="line"><a name="l00735"></a><span class="lineno">  735</span>&#160;</div>
<div class="line"><a name="l00739"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_memory_region.html#add662b1676ee5857f94782484fe23291">  739</a></span>&#160;        <span class="keyword">public</span> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_region.html">MemoryRegion</a> Parent { <span class="keyword">get</span>; <span class="keyword">private</span> set; }</div>
<div class="line"><a name="l00740"></a><span class="lineno">  740</span>&#160;</div>
<div class="line"><a name="l00744"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_memory_region.html#ae36d289ba174328df33b7eaa403e158f">  744</a></span>&#160;        <span class="keyword">public</span> ulong BaseAddress { <span class="keyword">get</span>; <span class="keyword">private</span> set; }</div>
<div class="line"><a name="l00745"></a><span class="lineno">  745</span>&#160;</div>
<div class="line"><a name="l00746"></a><span class="lineno">  746</span>&#160;        <span class="keyword">private</span> ulong _requiredSize;</div>
<div class="line"><a name="l00747"></a><span class="lineno">  747</span>&#160;</div>
<div class="line"><a name="l00751"></a><span class="lineno">  751</span>&#160;        <span class="keyword">public</span> ulong RequiredSize </div>
<div class="line"><a name="l00752"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_memory_region.html#a8e02a69a5a660f3b28cf195bd71d3abb">  752</a></span>&#160;        {</div>
<div class="line"><a name="l00753"></a><span class="lineno">  753</span>&#160;            <span class="keyword">get</span> { <span class="keywordflow">return</span> _requiredSize; }</div>
<div class="line"><a name="l00754"></a><span class="lineno">  754</span>&#160;            set</div>
<div class="line"><a name="l00755"></a><span class="lineno">  755</span>&#160;            {</div>
<div class="line"><a name="l00756"></a><span class="lineno">  756</span>&#160;                <span class="keywordflow">if</span> (IsSealed)</div>
<div class="line"><a name="l00757"></a><span class="lineno">  757</span>&#160;                    <span class="keywordflow">throw</span> <span class="keyword">new</span> InvalidOperationException();</div>
<div class="line"><a name="l00758"></a><span class="lineno">  758</span>&#160;</div>
<div class="line"><a name="l00759"></a><span class="lineno">  759</span>&#160;                _requiredSize = value;</div>
<div class="line"><a name="l00760"></a><span class="lineno">  760</span>&#160;            }</div>
<div class="line"><a name="l00761"></a><span class="lineno">  761</span>&#160;        }</div>
<div class="line"><a name="l00762"></a><span class="lineno">  762</span>&#160;</div>
<div class="line"><a name="l00763"></a><span class="lineno">  763</span>&#160;        <span class="keyword">internal</span> <span class="keywordtype">void</span> Seal()</div>
<div class="line"><a name="l00764"></a><span class="lineno">  764</span>&#160;        {</div>
<div class="line"><a name="l00765"></a><span class="lineno">  765</span>&#160;            <span class="keywordflow">if</span> (IsSealed)</div>
<div class="line"><a name="l00766"></a><span class="lineno">  766</span>&#160;                <span class="keywordflow">throw</span> <span class="keyword">new</span> InvalidOperationException();</div>
<div class="line"><a name="l00767"></a><span class="lineno">  767</span>&#160;</div>
<div class="line"><a name="l00768"></a><span class="lineno">  768</span>&#160;            IsSealed = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00769"></a><span class="lineno">  769</span>&#160;            Items = <span class="keyword">new</span> ReadOnlyCollection&lt;MemoryMappedStorage&gt;(Items);</div>
<div class="line"><a name="l00770"></a><span class="lineno">  770</span>&#160;        }</div>
<div class="line"><a name="l00771"></a><span class="lineno">  771</span>&#160;</div>
<div class="line"><a name="l00775"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_memory_region.html#ae8fcc58ac6585773c5c475d28527af8a">  775</a></span>&#160;        <span class="keyword">public</span> <span class="keywordtype">bool</span> IsSealed { <span class="keyword">get</span>; <span class="keyword">private</span> set; }</div>
<div class="line"><a name="l00776"></a><span class="lineno">  776</span>&#160;</div>
<div class="line"><a name="l00780"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_memory_region.html#a9775e1ad3806b09905871ff144db2d14">  780</a></span>&#160;        <span class="keyword">public</span> IList&lt;MemoryMappedStorage&gt; Items { <span class="keyword">get</span>; <span class="keyword">private</span> set; }</div>
<div class="line"><a name="l00781"></a><span class="lineno">  781</span>&#160;</div>
<div class="line"><a name="l00782"></a><span class="lineno">  782</span>&#160;        <span class="keyword">internal</span> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_region.html">MemoryRegion</a>(<a class="code" href="interface_system_sharp_1_1_synthesis_1_1_i_marshal_info.html">IMarshalInfo</a> marshalInfo)</div>
<div class="line"><a name="l00783"></a><span class="lineno">  783</span>&#160;        {</div>
<div class="line"><a name="l00784"></a><span class="lineno">  784</span>&#160;            Items = <span class="keyword">new</span> List&lt;MemoryMappedStorage&gt;();</div>
<div class="line"><a name="l00785"></a><span class="lineno">  785</span>&#160;            MarshalInfo = marshalInfo;</div>
<div class="line"><a name="l00786"></a><span class="lineno">  786</span>&#160;        }</div>
<div class="line"><a name="l00787"></a><span class="lineno">  787</span>&#160;</div>
<div class="line"><a name="l00788"></a><span class="lineno">  788</span>&#160;        <span class="keyword">internal</span> MemoryRegion(MemoryRegion parent, ulong baseAddress)</div>
<div class="line"><a name="l00789"></a><span class="lineno">  789</span>&#160;        {</div>
<div class="line"><a name="l00790"></a><span class="lineno">  790</span>&#160;            Items = <span class="keyword">new</span> List&lt;MemoryMappedStorage&gt;();</div>
<div class="line"><a name="l00791"></a><span class="lineno">  791</span>&#160;            Parent = parent;</div>
<div class="line"><a name="l00792"></a><span class="lineno">  792</span>&#160;            MarshalInfo = parent.MarshalInfo;</div>
<div class="line"><a name="l00793"></a><span class="lineno">  793</span>&#160;            BaseAddress = baseAddress;</div>
<div class="line"><a name="l00794"></a><span class="lineno">  794</span>&#160;        }</div>
<div class="line"><a name="l00795"></a><span class="lineno">  795</span>&#160;</div>
<div class="line"><a name="l00801"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_memory_region.html#aa3427b8f03a459ccf330d1e597144f0e">  801</a></span>&#160;        <span class="keyword">public</span> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_mapped_storage.html">MemoryMappedStorage</a> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_region.html#aa3427b8f03a459ccf330d1e597144f0e">Map</a>(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_variable.html">Variable</a> v)</div>
<div class="line"><a name="l00802"></a><span class="lineno">  802</span>&#160;        {</div>
<div class="line"><a name="l00803"></a><span class="lineno">  803</span>&#160;            Contract.Requires(v != null);</div>
<div class="line"><a name="l00804"></a><span class="lineno">  804</span>&#160;            var result = <span class="keyword">new</span> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_mapped_storage.html">MemoryMappedStorage</a>(v, <span class="keyword">this</span>, <a class="code" href="class_system_sharp_1_1_synthesis_1_1_marshal.html">Marshal</a>.<a class="code" href="class_system_sharp_1_1_synthesis_1_1_marshal.html#adc5c394cc4173ce52d7f7b46e2124344">Layout</a>(v.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_variable.html#aab46d77a29603895f08dc61ee73f4a72">Type</a>, MarshalInfo));</div>
<div class="line"><a name="l00805"></a><span class="lineno">  805</span>&#160;            Items.Add(result);</div>
<div class="line"><a name="l00806"></a><span class="lineno">  806</span>&#160;            <span class="keywordflow">return</span> result;</div>
<div class="line"><a name="l00807"></a><span class="lineno">  807</span>&#160;        }</div>
<div class="line"><a name="l00808"></a><span class="lineno">  808</span>&#160;</div>
<div class="line"><a name="l00814"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_memory_region.html#a9773a624da8c8b6f7a0a646323af66bd">  814</a></span>&#160;        <span class="keyword">public</span> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_mapped_storage.html">MemoryMappedStorage</a> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_region.html#a9773a624da8c8b6f7a0a646323af66bd">Map</a>(<span class="keywordtype">object</span> data)</div>
<div class="line"><a name="l00815"></a><span class="lineno">  815</span>&#160;        {</div>
<div class="line"><a name="l00816"></a><span class="lineno">  816</span>&#160;            Contract.Requires(data != null);</div>
<div class="line"><a name="l00817"></a><span class="lineno">  817</span>&#160;            var result = <span class="keyword">new</span> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_mapped_storage.html">MemoryMappedStorage</a>(data, <span class="keyword">this</span>, <a class="code" href="class_system_sharp_1_1_synthesis_1_1_marshal.html">Marshal</a>.<a class="code" href="class_system_sharp_1_1_synthesis_1_1_marshal.html#adc5c394cc4173ce52d7f7b46e2124344">Layout</a>(<a class="code" href="class_system_sharp_1_1_meta_1_1_type_descriptor.html">TypeDescriptor</a>.<a class="code" href="class_system_sharp_1_1_meta_1_1_type_descriptor.html#adb47566120cd2ba4ea2fa81cf527d42b">GetTypeOf</a>(data), MarshalInfo));</div>
<div class="line"><a name="l00818"></a><span class="lineno">  818</span>&#160;            Items.Add(result);</div>
<div class="line"><a name="l00819"></a><span class="lineno">  819</span>&#160;            <span class="keywordflow">return</span> result;</div>
<div class="line"><a name="l00820"></a><span class="lineno">  820</span>&#160;        }</div>
<div class="line"><a name="l00821"></a><span class="lineno">  821</span>&#160;</div>
<div class="line"><a name="l00828"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_memory_region.html#aee406c97834577e98adee1821a4ee42b">  828</a></span>&#160;        <span class="keyword">public</span> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_mapped_storage.html">MemoryMappedStorage</a> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_region.html#aee406c97834577e98adee1821a4ee42b">Map</a>(<span class="keywordtype">object</span> item, <a class="code" href="class_system_sharp_1_1_meta_1_1_type_descriptor.html">TypeDescriptor</a> dataType)</div>
<div class="line"><a name="l00829"></a><span class="lineno">  829</span>&#160;        {</div>
<div class="line"><a name="l00830"></a><span class="lineno">  830</span>&#160;            Contract.Requires(item != null);</div>
<div class="line"><a name="l00831"></a><span class="lineno">  831</span>&#160;            Contract.Requires(dataType != null);</div>
<div class="line"><a name="l00832"></a><span class="lineno">  832</span>&#160;            var result = <span class="keyword">new</span> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_mapped_storage.html">MemoryMappedStorage</a>(item, dataType, <span class="keyword">this</span>, <a class="code" href="class_system_sharp_1_1_synthesis_1_1_marshal.html">Marshal</a>.<a class="code" href="class_system_sharp_1_1_synthesis_1_1_marshal.html#adc5c394cc4173ce52d7f7b46e2124344">Layout</a>(dataType, MarshalInfo));</div>
<div class="line"><a name="l00833"></a><span class="lineno">  833</span>&#160;            Items.Add(result);</div>
<div class="line"><a name="l00834"></a><span class="lineno">  834</span>&#160;            <span class="keywordflow">return</span> result;</div>
<div class="line"><a name="l00835"></a><span class="lineno">  835</span>&#160;        }</div>
<div class="line"><a name="l00836"></a><span class="lineno">  836</span>&#160;</div>
<div class="line"><a name="l00840"></a><span class="lineno">  840</span>&#160;        <span class="keyword">public</span> <span class="keywordtype">int</span> AddressWidth</div>
<div class="line"><a name="l00841"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_memory_region.html#a7b55269b00f6c6f92ab85cef8d4a50a2">  841</a></span>&#160;        {</div>
<div class="line"><a name="l00842"></a><span class="lineno">  842</span>&#160;            <span class="keyword">get</span></div>
<div class="line"><a name="l00843"></a><span class="lineno">  843</span>&#160;            {</div>
<div class="line"><a name="l00844"></a><span class="lineno">  844</span>&#160;                <span class="keywordflow">if</span> (RequiredSize == 0)</div>
<div class="line"><a name="l00845"></a><span class="lineno">  845</span>&#160;                    <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00846"></a><span class="lineno">  846</span>&#160;                <span class="keywordflow">else</span></div>
<div class="line"><a name="l00847"></a><span class="lineno">  847</span>&#160;                    <span class="keywordflow">return</span> MathExt.CeilLog2(RequiredSize); </div>
<div class="line"><a name="l00848"></a><span class="lineno">  848</span>&#160;            }</div>
<div class="line"><a name="l00849"></a><span class="lineno">  849</span>&#160;        }</div>
<div class="line"><a name="l00850"></a><span class="lineno">  850</span>&#160;</div>
<div class="line"><a name="l00851"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_memory_region.html#a071cbb03db1804e553c72a140e5c3280">  851</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">override</span> <span class="keywordtype">string</span> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_region.html#a071cbb03db1804e553c72a140e5c3280">ToString</a>()</div>
<div class="line"><a name="l00852"></a><span class="lineno">  852</span>&#160;        {</div>
<div class="line"><a name="l00853"></a><span class="lineno">  853</span>&#160;            <span class="keywordflow">return</span> string.Format(<span class="stringliteral">&quot;MemRgn[base: {0:X} size: {1:X}]&quot;</span>, BaseAddress, RequiredSize);</div>
<div class="line"><a name="l00854"></a><span class="lineno">  854</span>&#160;        }</div>
<div class="line"><a name="l00855"></a><span class="lineno">  855</span>&#160;    }</div>
<div class="line"><a name="l00856"></a><span class="lineno">  856</span>&#160;</div>
<div class="line"><a name="l00860"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_memory_mapped_storage.html">  860</a></span>&#160;    <span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_mapped_storage.html">MemoryMappedStorage</a></div>
<div class="line"><a name="l00861"></a><span class="lineno">  861</span>&#160;    {</div>
<div class="line"><a name="l00865"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_memory_mapped_storage.html#a355dc6a9655695e578211b85af07ff8e">  865</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">enum</span> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_mapped_storage.html#a355dc6a9655695e578211b85af07ff8e">EKind</a></div>
<div class="line"><a name="l00866"></a><span class="lineno">  866</span>&#160;        {</div>
<div class="line"><a name="l00867"></a><span class="lineno">  867</span>&#160;            <a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_variable.html">Variable</a>,</div>
<div class="line"><a name="l00868"></a><span class="lineno">  868</span>&#160;            Data,</div>
<div class="line"><a name="l00869"></a><span class="lineno">  869</span>&#160;            DataItem</div>
<div class="line"><a name="l00870"></a><span class="lineno">  870</span>&#160;        }</div>
<div class="line"><a name="l00871"></a><span class="lineno">  871</span>&#160;</div>
<div class="line"><a name="l00875"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_memory_mapped_storage.html#ae0bbfe9a2e266d1c07006a6c2efb9ff0">  875</a></span>&#160;        <span class="keyword">public</span> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_mapped_storage.html#a355dc6a9655695e578211b85af07ff8e">EKind</a> Kind { <span class="keyword">get</span>; <span class="keyword">private</span> set; }</div>
<div class="line"><a name="l00876"></a><span class="lineno">  876</span>&#160;</div>
<div class="line"><a name="l00880"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_memory_mapped_storage.html#a46569be35081b59843cf9401b957dfff">  880</a></span>&#160;        <span class="keyword">public</span> <a class="code" href="interface_system_sharp_1_1_sys_d_o_m_1_1_i_storable.html">IStorable</a> <a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_variable.html">Variable</a> { <span class="keyword">get</span>; <span class="keyword">private</span> set; }</div>
<div class="line"><a name="l00881"></a><span class="lineno">  881</span>&#160;</div>
<div class="line"><a name="l00885"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_memory_mapped_storage.html#a0c162ed3acf5cf537baa5cef7b1c0842">  885</a></span>&#160;        <span class="keyword">public</span> <span class="keywordtype">object</span> Data { <span class="keyword">get</span>; <span class="keyword">private</span> set; }</div>
<div class="line"><a name="l00886"></a><span class="lineno">  886</span>&#160;</div>
<div class="line"><a name="l00890"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_memory_mapped_storage.html#ab80ca72f2defd79b9eee961709df367c">  890</a></span>&#160;        <span class="keyword">public</span> <span class="keywordtype">object</span> DataItem { <span class="keyword">get</span>; <span class="keyword">private</span> set; }</div>
<div class="line"><a name="l00891"></a><span class="lineno">  891</span>&#160;</div>
<div class="line"><a name="l00895"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_memory_mapped_storage.html#ac4f90d60260c4a2d409ee17bb9fd4ea8">  895</a></span>&#160;        <span class="keyword">public</span> <a class="code" href="class_system_sharp_1_1_meta_1_1_type_descriptor.html">TypeDescriptor</a> DataItemType { <span class="keyword">get</span>; <span class="keyword">private</span> set; }</div>
<div class="line"><a name="l00896"></a><span class="lineno">  896</span>&#160;</div>
<div class="line"><a name="l00900"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_memory_mapped_storage.html#a1712d5f5380934d72e163b4aaadab8d9">  900</a></span>&#160;        <span class="keyword">public</span> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_region.html">MemoryRegion</a> Region { <span class="keyword">get</span>; <span class="keyword">private</span> set; }</div>
<div class="line"><a name="l00901"></a><span class="lineno">  901</span>&#160;</div>
<div class="line"><a name="l00905"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_memory_mapped_storage.html#a0e99e9292f4b684dfb2752adea1b7f89">  905</a></span>&#160;        <span class="keyword">public</span> ulong Offset { <span class="keyword">get</span>; set; }</div>
<div class="line"><a name="l00906"></a><span class="lineno">  906</span>&#160;</div>
<div class="line"><a name="l00910"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_memory_mapped_storage.html#a3d4f14757456acfa1d67557d7286acab">  910</a></span>&#160;        <span class="keyword">public</span> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_layout.html">MemoryLayout</a> Layout { <span class="keyword">get</span>; <span class="keyword">private</span> set; }</div>
<div class="line"><a name="l00911"></a><span class="lineno">  911</span>&#160;</div>
<div class="line"><a name="l00912"></a><span class="lineno">  912</span>&#160;        <span class="keyword">internal</span> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_mapped_storage.html">MemoryMappedStorage</a>(<a class="code" href="interface_system_sharp_1_1_sys_d_o_m_1_1_i_storable.html">IStorable</a> variable, <a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_region.html">MemoryRegion</a> region, <a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_layout.html">MemoryLayout</a> layout)</div>
<div class="line"><a name="l00913"></a><span class="lineno">  913</span>&#160;        {</div>
<div class="line"><a name="l00914"></a><span class="lineno">  914</span>&#160;            Kind = EKind.Variable;</div>
<div class="line"><a name="l00915"></a><span class="lineno">  915</span>&#160;            <a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_variable.html">Variable</a> = variable;</div>
<div class="line"><a name="l00916"></a><span class="lineno">  916</span>&#160;            Region = region;</div>
<div class="line"><a name="l00917"></a><span class="lineno">  917</span>&#160;            Layout = layout;</div>
<div class="line"><a name="l00918"></a><span class="lineno">  918</span>&#160;        }</div>
<div class="line"><a name="l00919"></a><span class="lineno">  919</span>&#160;</div>
<div class="line"><a name="l00920"></a><span class="lineno">  920</span>&#160;        <span class="keyword">internal</span> MemoryMappedStorage(<span class="keywordtype">object</span> data, MemoryRegion region, MemoryLayout layout)</div>
<div class="line"><a name="l00921"></a><span class="lineno">  921</span>&#160;        {</div>
<div class="line"><a name="l00922"></a><span class="lineno">  922</span>&#160;            Kind = EKind.Data;</div>
<div class="line"><a name="l00923"></a><span class="lineno">  923</span>&#160;            Data = data;</div>
<div class="line"><a name="l00924"></a><span class="lineno">  924</span>&#160;            Region = region;</div>
<div class="line"><a name="l00925"></a><span class="lineno">  925</span>&#160;            Layout = layout;</div>
<div class="line"><a name="l00926"></a><span class="lineno">  926</span>&#160;        }</div>
<div class="line"><a name="l00927"></a><span class="lineno">  927</span>&#160;</div>
<div class="line"><a name="l00928"></a><span class="lineno">  928</span>&#160;        <span class="keyword">internal</span> MemoryMappedStorage(<span class="keywordtype">object</span> dataItem, <a class="code" href="class_system_sharp_1_1_meta_1_1_type_descriptor.html">TypeDescriptor</a> dataItemType, MemoryRegion region, MemoryLayout layout)</div>
<div class="line"><a name="l00929"></a><span class="lineno">  929</span>&#160;        {</div>
<div class="line"><a name="l00930"></a><span class="lineno">  930</span>&#160;            Kind = EKind.DataItem;</div>
<div class="line"><a name="l00931"></a><span class="lineno">  931</span>&#160;            DataItem = dataItem;</div>
<div class="line"><a name="l00932"></a><span class="lineno">  932</span>&#160;            DataItemType = dataItemType;</div>
<div class="line"><a name="l00933"></a><span class="lineno">  933</span>&#160;            Region = region;</div>
<div class="line"><a name="l00934"></a><span class="lineno">  934</span>&#160;            Layout = layout;</div>
<div class="line"><a name="l00935"></a><span class="lineno">  935</span>&#160;        }</div>
<div class="line"><a name="l00936"></a><span class="lineno">  936</span>&#160;</div>
<div class="line"><a name="l00940"></a><span class="lineno">  940</span>&#160;        <span class="keyword">public</span> ulong <a class="code" href="namespace_system_sharp_1_1_data_types.html#aaa77d3e1a986cc90a1b9f920579b78d3a6f6cb72d544962fa333e2e34ce64f719">Size</a></div>
<div class="line"><a name="l00941"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_memory_mapped_storage.html#a200eef54f77ebb490662e71fc8aa80d1">  941</a></span>&#160;        {</div>
<div class="line"><a name="l00942"></a><span class="lineno">  942</span>&#160;            <span class="keyword">get</span> { <span class="keywordflow">return</span> Layout.Size; }</div>
<div class="line"><a name="l00943"></a><span class="lineno">  943</span>&#160;        }</div>
<div class="line"><a name="l00944"></a><span class="lineno">  944</span>&#160;</div>
<div class="line"><a name="l00948"></a><span class="lineno">  948</span>&#160;        <span class="keyword">public</span> <a class="code" href="struct_system_sharp_1_1_data_types_1_1_unsigned.html">Unsigned</a> BaseAddress</div>
<div class="line"><a name="l00949"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_memory_mapped_storage.html#ad1f117351f6fa6918bd45634e4dccb11">  949</a></span>&#160;        {</div>
<div class="line"><a name="l00950"></a><span class="lineno">  950</span>&#160;            <span class="keyword">get</span> { <span class="keywordflow">return</span> Unsigned.FromULong(Region.BaseAddress + Offset, Region.AddressWidth); }</div>
<div class="line"><a name="l00951"></a><span class="lineno">  951</span>&#160;        }</div>
<div class="line"><a name="l00952"></a><span class="lineno">  952</span>&#160;    }</div>
<div class="line"><a name="l00953"></a><span class="lineno">  953</span>&#160;</div>
<div class="line"><a name="l00957"></a><span class="lineno"><a class="line" href="interface_system_sharp_1_1_synthesis_1_1_i_memory_layout_algorithm.html">  957</a></span>&#160;    <span class="keyword">public</span> <span class="keyword">interface </span><a class="code" href="interface_system_sharp_1_1_synthesis_1_1_i_memory_layout_algorithm.html">IMemoryLayoutAlgorithm</a></div>
<div class="line"><a name="l00958"></a><span class="lineno">  958</span>&#160;    {</div>
<div class="line"><a name="l00963"></a><span class="lineno">  963</span>&#160;        <span class="keywordtype">void</span> Layout(<a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_region.html">MemoryRegion</a> region);</div>
<div class="line"><a name="l00964"></a><span class="lineno">  964</span>&#160;    }</div>
<div class="line"><a name="l00965"></a><span class="lineno">  965</span>&#160;</div>
<div class="line"><a name="l00969"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_memory_mapper.html">  969</a></span>&#160;    <span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_mapper.html">MemoryMapper</a></div>
<div class="line"><a name="l00970"></a><span class="lineno">  970</span>&#160;    {</div>
<div class="line"><a name="l00974"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_memory_mapper.html#a3e626489816574d69ec8e8d8f79cbd35">  974</a></span>&#160;        <span class="keyword">public</span> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_region.html">MemoryRegion</a> DefaultRegion { <span class="keyword">get</span>; <span class="keyword">private</span> set; }</div>
<div class="line"><a name="l00975"></a><span class="lineno">  975</span>&#160;</div>
<div class="line"><a name="l00979"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_memory_mapper.html#aadc27bfa6949061d454846e060adce5a">  979</a></span>&#160;        <span class="keyword">public</span> <a class="code" href="interface_system_sharp_1_1_synthesis_1_1_i_marshal_info.html">IMarshalInfo</a> MarshalInfo { <span class="keyword">get</span>; set; }</div>
<div class="line"><a name="l00980"></a><span class="lineno">  980</span>&#160;</div>
<div class="line"><a name="l00985"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_memory_mapper.html#a01fa7a55b712f582383993cd734d33db">  985</a></span>&#160;        <span class="keyword">public</span> <a class="code" href="interface_system_sharp_1_1_synthesis_1_1_i_memory_layout_algorithm.html">IMemoryLayoutAlgorithm</a> LayoutAlgorithm { <span class="keyword">get</span>; set; }</div>
<div class="line"><a name="l00986"></a><span class="lineno">  986</span>&#160;</div>
<div class="line"><a name="l00990"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_memory_mapper.html#af43487804e01a013242274354b65625a">  990</a></span>&#160;        <span class="keyword">public</span> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_mapper.html#af43487804e01a013242274354b65625a">MemoryMapper</a>()</div>
<div class="line"><a name="l00991"></a><span class="lineno">  991</span>&#160;        {</div>
<div class="line"><a name="l00992"></a><span class="lineno">  992</span>&#160;            MarshalInfo = <span class="keyword">new</span> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_default_marshal_info.html">DefaultMarshalInfo</a>();</div>
<div class="line"><a name="l00993"></a><span class="lineno">  993</span>&#160;            LayoutAlgorithm = <span class="keyword">new</span> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_default_memory_layout_algorithm.html">DefaultMemoryLayoutAlgorithm</a>();</div>
<div class="line"><a name="l00994"></a><span class="lineno">  994</span>&#160;            DefaultRegion = <span class="keyword">new</span> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_region.html">MemoryRegion</a>(MarshalInfo);</div>
<div class="line"><a name="l00995"></a><span class="lineno">  995</span>&#160;        }</div>
<div class="line"><a name="l00996"></a><span class="lineno">  996</span>&#160;</div>
<div class="line"><a name="l01000"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_memory_mapper.html#a64833838be1b4afea570b2fa61e12f92"> 1000</a></span>&#160;        <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_memory_mapper.html#a64833838be1b4afea570b2fa61e12f92">DoLayout</a>()</div>
<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span>&#160;        {</div>
<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span>&#160;            LayoutAlgorithm.Layout(DefaultRegion);</div>
<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span>&#160;        }</div>
<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span>&#160;    }</div>
<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span>&#160;</div>
<div class="line"><a name="l01009"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_marshal_info_extensions.html"> 1009</a></span>&#160;    <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">class </span><a class="code" href="class_system_sharp_1_1_synthesis_1_1_marshal_info_extensions.html">MarshalInfoExtensions</a></div>
<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span>&#160;    {</div>
<div class="line"><a name="l01016"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_synthesis_1_1_marshal_info_extensions.html#a68f8187346ac53b07706d4e0e0c02cad"> 1016</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> <a class="code" href="class_system_sharp_1_1_meta_1_1_type_descriptor.html">TypeDescriptor</a> <a class="code" href="class_system_sharp_1_1_synthesis_1_1_marshal_info_extensions.html#a68f8187346ac53b07706d4e0e0c02cad">GetRawWordType</a>(<span class="keyword">this</span> <a class="code" href="interface_system_sharp_1_1_synthesis_1_1_i_marshal_info.html">IMarshalInfo</a> mi)</div>
<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span>&#160;        {</div>
<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span>&#160;            <span class="keywordflow">return</span> TypeDescriptor.GetTypeOf(</div>
<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span>&#160;                StdLogicVector._0s(mi.WordSize));</div>
<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span>&#160;        }</div>
<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>&#160;    }</div>
<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span>&#160;}</div>
<div class="ttc" id="class_system_sharp_1_1_synthesis_1_1_default_memory_layout_algorithm_html"><div class="ttname"><a href="class_system_sharp_1_1_synthesis_1_1_default_memory_layout_algorithm.html">SystemSharp.Synthesis.DefaultMemoryLayoutAlgorithm</a></div><div class="ttdoc">Default implementation of a memory layout algorithm. </div><div class="ttdef"><b>Definition:</b> <a href="_default_memory_layout_algorithm_8cs_source.html#l00038">DefaultMemoryLayoutAlgorithm.cs:38</a></div></div>
<div class="ttc" id="interface_system_sharp_1_1_synthesis_1_1_i_marshal_info_html_ade21d08225261aa9105399b551b807a4"><div class="ttname"><a href="interface_system_sharp_1_1_synthesis_1_1_i_marshal_info.html#ade21d08225261aa9105399b551b807a4">SystemSharp.Synthesis.IMarshalInfo.WordSize</a></div><div class="ttdeci">uint WordSize</div><div class="ttdoc">The target memory&#39;s word size (in bits). </div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l00112">MemoryMapping.cs:112</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_synthesis_1_1_marshal_info_extensions_html_a68f8187346ac53b07706d4e0e0c02cad"><div class="ttname"><a href="class_system_sharp_1_1_synthesis_1_1_marshal_info_extensions.html#a68f8187346ac53b07706d4e0e0c02cad">SystemSharp.Synthesis.MarshalInfoExtensions.GetRawWordType</a></div><div class="ttdeci">static TypeDescriptor GetRawWordType(this IMarshalInfo mi)</div><div class="ttdoc">Returns a type descriptor for describing a single word for the marshalling information. </div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l01016">MemoryMapping.cs:1016</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_meta_1_1_type_descriptor_html_adb47566120cd2ba4ea2fa81cf527d42b"><div class="ttname"><a href="class_system_sharp_1_1_meta_1_1_type_descriptor.html#adb47566120cd2ba4ea2fa81cf527d42b">SystemSharp.Meta.TypeDescriptor.GetTypeOf</a></div><div class="ttdeci">static TypeDescriptor GetTypeOf(object instance)</div><div class="ttdoc">Creates a type descriptor from an instance. </div><div class="ttdef"><b>Definition:</b> <a href="_type_descriptor_8cs_source.html#l00725">TypeDescriptor.cs:725</a></div></div>
<div class="ttc" id="interface_system_sharp_1_1_synthesis_1_1_i_memory_layout_algorithm_html"><div class="ttname"><a href="interface_system_sharp_1_1_synthesis_1_1_i_memory_layout_algorithm.html">SystemSharp.Synthesis.IMemoryLayoutAlgorithm</a></div><div class="ttdoc">Common interface for memory layout algorithms. </div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l00957">MemoryMapping.cs:957</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_synthesis_1_1_memory_region_html_aa3427b8f03a459ccf330d1e597144f0e"><div class="ttname"><a href="class_system_sharp_1_1_synthesis_1_1_memory_region.html#aa3427b8f03a459ccf330d1e597144f0e">SystemSharp.Synthesis.MemoryRegion.Map</a></div><div class="ttdeci">MemoryMappedStorage Map(Variable v)</div><div class="ttdoc">Maps a variable to this region. </div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l00801">MemoryMapping.cs:801</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_sys_d_o_m_1_1_variable_html_aab46d77a29603895f08dc61ee73f4a72"><div class="ttname"><a href="class_system_sharp_1_1_sys_d_o_m_1_1_variable.html#aab46d77a29603895f08dc61ee73f4a72">SystemSharp.SysDOM.Variable.Type</a></div><div class="ttdeci">override TypeDescriptor Type</div><div class="ttdef"><b>Definition:</b> <a href="_literals_8cs_source.html#l00216">Literals.cs:216</a></div></div>
<div class="ttc" id="interface_system_sharp_1_1_synthesis_1_1_i_marshal_info_html_ade9c987c3a3711d329a5ea58d008e846"><div class="ttname"><a href="interface_system_sharp_1_1_synthesis_1_1_i_marshal_info.html#ade9c987c3a3711d329a5ea58d008e846">SystemSharp.Synthesis.IMarshalInfo.UseArrayDimPow2Alignment</a></div><div class="ttdeci">bool UseArrayDimPow2Alignment</div><div class="ttdoc">If true, array dimensions are aligned to powers of two (simplifies indexing). </div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l00122">MemoryMapping.cs:122</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_synthesis_1_1_memory_mapped_storage_html_a355dc6a9655695e578211b85af07ff8e"><div class="ttname"><a href="class_system_sharp_1_1_synthesis_1_1_memory_mapped_storage.html#a355dc6a9655695e578211b85af07ff8e">SystemSharp.Synthesis.MemoryMappedStorage.EKind</a></div><div class="ttdeci">EKind</div><div class="ttdoc">Kind of mapping </div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l00865">MemoryMapping.cs:865</a></div></div>
<div class="ttc" id="struct_system_sharp_1_1_data_types_1_1_std_logic_vector_html"><div class="ttname"><a href="struct_system_sharp_1_1_data_types_1_1_std_logic_vector.html">SystemSharp.DataTypes.StdLogicVector</a></div><div class="ttdoc">Represents a vector of four-valued logic, similiar to IEEE 1164. </div><div class="ttdef"><b>Definition:</b> <a href="_std_logic_lib_8cs_source.html#l00783">StdLogicLib.cs:783</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_synthesis_1_1_memory_layout_contract_class_html_a8f74685529abb0743445689289fcaf14"><div class="ttname"><a href="class_system_sharp_1_1_synthesis_1_1_memory_layout_contract_class.html#a8f74685529abb0743445689289fcaf14">SystemSharp.Synthesis.MemoryLayoutContractClass.MemoryLayoutContractClass</a></div><div class="ttdeci">MemoryLayoutContractClass()</div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l00301">MemoryMapping.cs:301</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_synthesis_1_1_marshal_info_extensions_html"><div class="ttname"><a href="class_system_sharp_1_1_synthesis_1_1_marshal_info_extensions.html">SystemSharp.Synthesis.MarshalInfoExtensions</a></div><div class="ttdoc">This static class provides extension methods to work with marshalling information. </div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l01009">MemoryMapping.cs:1009</a></div></div>
<div class="ttc" id="interface_system_sharp_1_1_synthesis_1_1_i_serializer_html"><div class="ttname"><a href="interface_system_sharp_1_1_synthesis_1_1_i_serializer.html">SystemSharp.Synthesis.ISerializer</a></div><div class="ttdoc">Service interface for serializing and deserializing objects to and from StdLogicVector instances...</div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l00042">MemoryMapping.cs:42</a></div></div>
<div class="ttc" id="interface_system_sharp_1_1_synthesis_1_1_i_marshal_info_html_a6889bbbc7866fbf48a9233ccfc6d0f7a"><div class="ttname"><a href="interface_system_sharp_1_1_synthesis_1_1_i_marshal_info.html#a6889bbbc7866fbf48a9233ccfc6d0f7a">SystemSharp.Synthesis.IMarshalInfo.UseArraySubWordAlignment</a></div><div class="ttdeci">bool UseArraySubWordAlignment</div><div class="ttdoc">If true, multiple array elements may be packed into a single memory word. </div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l00117">MemoryMapping.cs:117</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_synthesis_1_1_memory_layout_html_ae7b683cddf414b8dc64b38bf824ce89a"><div class="ttname"><a href="class_system_sharp_1_1_synthesis_1_1_memory_layout.html#ae7b683cddf414b8dc64b38bf824ce89a">SystemSharp.Synthesis.MemoryLayout.SizeInBits</a></div><div class="ttdeci">ulong SizeInBits</div><div class="ttdoc">Size of the layout in bits. </div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l00283">MemoryMapping.cs:283</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_synthesis_1_1_memory_mapper_html_af43487804e01a013242274354b65625a"><div class="ttname"><a href="class_system_sharp_1_1_synthesis_1_1_memory_mapper.html#af43487804e01a013242274354b65625a">SystemSharp.Synthesis.MemoryMapper.MemoryMapper</a></div><div class="ttdeci">MemoryMapper()</div><div class="ttdoc">Constructs an instance of the memory mapper. </div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l00990">MemoryMapping.cs:990</a></div></div>
<div class="ttc" id="interface_system_sharp_1_1_synthesis_1_1_i_marshal_info_html"><div class="ttname"><a href="interface_system_sharp_1_1_synthesis_1_1_i_marshal_info.html">SystemSharp.Synthesis.IMarshalInfo</a></div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l00107">MemoryMapping.cs:107</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_synthesis_1_1_marshal_html"><div class="ttname"><a href="class_system_sharp_1_1_synthesis_1_1_marshal.html">SystemSharp.Synthesis.Marshal</a></div><div class="ttdoc">This static class provides convenience methods for serialization/deserialization and memory layout...</div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l00568">MemoryMapping.cs:568</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_synthesis_1_1_array_memory_layout_html"><div class="ttname"><a href="class_system_sharp_1_1_synthesis_1_1_array_memory_layout.html">SystemSharp.Synthesis.ArrayMemoryLayout</a></div><div class="ttdoc">Memory layout for arrays. </div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l00464">MemoryMapping.cs:464</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_synthesis_1_1_array_memory_layout_html_addd5ef0f1539f97876523693afb70d68"><div class="ttname"><a href="class_system_sharp_1_1_synthesis_1_1_array_memory_layout.html#addd5ef0f1539f97876523693afb70d68">SystemSharp.Synthesis.ArrayMemoryLayout.SerializeInstance</a></div><div class="ttdeci">override StdLogicVector[] SerializeInstance(object instance)</div><div class="ttdoc">Serializes an instance of the layouted type. </div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l00516">MemoryMapping.cs:516</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_synthesis_1_1_enum_memory_layout_html"><div class="ttname"><a href="class_system_sharp_1_1_synthesis_1_1_enum_memory_layout.html">SystemSharp.Synthesis.EnumMemoryLayout</a></div><div class="ttdoc">Memory layout for enumeration types. </div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l00354">MemoryMapping.cs:354</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_synthesis_1_1_struct_memory_layout_html_a2eaa567e56cf472b2ee245e4fad84ab8"><div class="ttname"><a href="class_system_sharp_1_1_synthesis_1_1_struct_memory_layout.html#a2eaa567e56cf472b2ee245e4fad84ab8">SystemSharp.Synthesis.StructMemoryLayout.GetFieldLayout</a></div><div class="ttdeci">MemoryLayout GetFieldLayout(FieldInfo field)</div><div class="ttdoc">Returns the memory layout of a particular field (must be member of the layouted struct). </div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l00424">MemoryMapping.cs:424</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_sys_d_o_m_1_1_variable_html"><div class="ttname"><a href="class_system_sharp_1_1_sys_d_o_m_1_1_variable.html">SystemSharp.SysDOM.Variable</a></div><div class="ttdoc">A local variable. </div><div class="ttdef"><b>Definition:</b> <a href="_literals_8cs_source.html#l00195">Literals.cs:195</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_synthesis_1_1_memory_region_html_a071cbb03db1804e553c72a140e5c3280"><div class="ttname"><a href="class_system_sharp_1_1_synthesis_1_1_memory_region.html#a071cbb03db1804e553c72a140e5c3280">SystemSharp.Synthesis.MemoryRegion.ToString</a></div><div class="ttdeci">override string ToString()</div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l00851">MemoryMapping.cs:851</a></div></div>
<div class="ttc" id="namespace_system_sharp_1_1_data_types_html_aaa77d3e1a986cc90a1b9f920579b78d3a6f6cb72d544962fa333e2e34ce64f719"><div class="ttname"><a href="namespace_system_sharp_1_1_data_types.html#aaa77d3e1a986cc90a1b9f920579b78d3a6f6cb72d544962fa333e2e34ce64f719">SystemSharp.DataTypes.Size</a></div></div>
<div class="ttc" id="struct_system_sharp_1_1_data_types_1_1_unsigned_html"><div class="ttname"><a href="struct_system_sharp_1_1_data_types_1_1_unsigned.html">SystemSharp.DataTypes.Unsigned</a></div><div class="ttdoc">An unsigned integer </div><div class="ttdef"><b>Definition:</b> <a href="_unsigned_8cs_source.html#l00637">Unsigned.cs:637</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_synthesis_1_1_marshal_html_a7576912e527c65134e2825b86833d686"><div class="ttname"><a href="class_system_sharp_1_1_synthesis_1_1_marshal.html#a7576912e527c65134e2825b86833d686">SystemSharp.Synthesis.Marshal.SerializeForHW</a></div><div class="ttdeci">static StdLogicVector SerializeForHW(object value)</div><div class="ttdoc">Computes a serialization of a value, assuming a word size of 1. </div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l00712">MemoryMapping.cs:712</a></div></div>
<div class="ttc" id="interface_system_sharp_1_1_sys_d_o_m_1_1_i_storable_html"><div class="ttname"><a href="interface_system_sharp_1_1_sys_d_o_m_1_1_i_storable.html">SystemSharp.SysDOM.IStorable</a></div><div class="ttdoc">Base interface of things that may be used a left-hand side of an assignment. </div><div class="ttdef"><b>Definition:</b> <a href="_literals_8cs_source.html#l00041">Literals.cs:41</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_synthesis_1_1_prim_memory_layout_html_a88181a3ebb0c9c0fa8e89150b6eb2e54"><div class="ttname"><a href="class_system_sharp_1_1_synthesis_1_1_prim_memory_layout.html#a88181a3ebb0c9c0fa8e89150b6eb2e54">SystemSharp.Synthesis.PrimMemoryLayout.SerializeInstance</a></div><div class="ttdeci">override StdLogicVector[] SerializeInstance(object instance)</div><div class="ttdoc">Serializes an instance of the layouted type. </div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l00330">MemoryMapping.cs:330</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_synthesis_1_1_memory_region_html_a9773a624da8c8b6f7a0a646323af66bd"><div class="ttname"><a href="class_system_sharp_1_1_synthesis_1_1_memory_region.html#a9773a624da8c8b6f7a0a646323af66bd">SystemSharp.Synthesis.MemoryRegion.Map</a></div><div class="ttdeci">MemoryMappedStorage Map(object data)</div><div class="ttdoc">Maps a constant to this region. </div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l00814">MemoryMapping.cs:814</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_synthesis_1_1_struct_memory_layout_html"><div class="ttname"><a href="class_system_sharp_1_1_synthesis_1_1_struct_memory_layout.html">SystemSharp.Synthesis.StructMemoryLayout</a></div><div class="ttdoc">Memory layout for structs. </div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l00395">MemoryMapping.cs:395</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_synthesis_1_1_s_l_v_serializable_html"><div class="ttname"><a href="class_system_sharp_1_1_synthesis_1_1_s_l_v_serializable.html">SystemSharp.Synthesis.SLVSerializable</a></div><div class="ttdoc">Indicates that the tagged class or struct is capable of serializing and deserializing itself to and f...</div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l00065">MemoryMapping.cs:65</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_synthesis_1_1_memory_mapper_html_a64833838be1b4afea570b2fa61e12f92"><div class="ttname"><a href="class_system_sharp_1_1_synthesis_1_1_memory_mapper.html#a64833838be1b4afea570b2fa61e12f92">SystemSharp.Synthesis.MemoryMapper.DoLayout</a></div><div class="ttdeci">void DoLayout()</div><div class="ttdoc">Computes the overall memory layout. </div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l01000">MemoryMapping.cs:1000</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_synthesis_1_1_marshal_html_adc5c394cc4173ce52d7f7b46e2124344"><div class="ttname"><a href="class_system_sharp_1_1_synthesis_1_1_marshal.html#adc5c394cc4173ce52d7f7b46e2124344">SystemSharp.Synthesis.Marshal.Layout</a></div><div class="ttdeci">static MemoryLayout Layout(TypeDescriptor td, IMarshalInfo info)</div><div class="ttdoc">Computes a memory layout for a given type descriptor. </div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l00597">MemoryMapping.cs:597</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_synthesis_1_1_enum_memory_layout_html_a7d959d8338157b2dbc6b4172c2d77c61"><div class="ttname"><a href="class_system_sharp_1_1_synthesis_1_1_enum_memory_layout.html#a7d959d8338157b2dbc6b4172c2d77c61">SystemSharp.Synthesis.EnumMemoryLayout.SerializeInstance</a></div><div class="ttdeci">override StdLogicVector[] SerializeInstance(object instance)</div><div class="ttdoc">Serializes an instance of the layouted type. </div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l00375">MemoryMapping.cs:375</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_synthesis_1_1_field_location_html_a95d5133f2864cc4713f9cdc2086d84d7"><div class="ttname"><a href="class_system_sharp_1_1_synthesis_1_1_field_location.html#a95d5133f2864cc4713f9cdc2086d84d7">SystemSharp.Synthesis.FieldLocation.FieldLocation</a></div><div class="ttdeci">FieldLocation(FieldInfo field, MemoryLayout fieldLayout, ulong offset)</div><div class="ttdoc">Constructs an instance. </div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l00256">MemoryMapping.cs:256</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_synthesis_1_1_default_marshal_info_html"><div class="ttname"><a href="class_system_sharp_1_1_synthesis_1_1_default_marshal_info.html">SystemSharp.Synthesis.DefaultMarshalInfo</a></div><div class="ttdoc">Default implementation of IMarshalInfo </div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l00138">MemoryMapping.cs:138</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_synthesis_1_1_memory_mapped_storage_html"><div class="ttname"><a href="class_system_sharp_1_1_synthesis_1_1_memory_mapped_storage.html">SystemSharp.Synthesis.MemoryMappedStorage</a></div><div class="ttdoc">Represents a constant, variable or data item which is mapped to a memory region. </div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l00860">MemoryMapping.cs:860</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_synthesis_1_1_memory_layout_contract_class_html_a81a4eb13778b8b658267a8bacaf92141"><div class="ttname"><a href="class_system_sharp_1_1_synthesis_1_1_memory_layout_contract_class.html#a81a4eb13778b8b658267a8bacaf92141">SystemSharp.Synthesis.MemoryLayoutContractClass.SerializeInstance</a></div><div class="ttdeci">override StdLogicVector[] SerializeInstance(object instance)</div><div class="ttdoc">Serializes an instance of the layouted type. </div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l00306">MemoryMapping.cs:306</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_synthesis_1_1_h_w_marshal_info_html_a340a22f9bc68b98ceaa3bc2390849129"><div class="ttname"><a href="class_system_sharp_1_1_synthesis_1_1_h_w_marshal_info.html#a340a22f9bc68b98ceaa3bc2390849129">SystemSharp.Synthesis.HWMarshalInfo.Instance</a></div><div class="ttdeci">static readonly IMarshalInfo Instance</div><div class="ttdoc">The one and only instance </div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l00227">MemoryMapping.cs:227</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_synthesis_1_1_struct_memory_layout_html_a9d0f2a509f38760b259f158c54ca17a8"><div class="ttname"><a href="class_system_sharp_1_1_synthesis_1_1_struct_memory_layout.html#a9d0f2a509f38760b259f158c54ca17a8">SystemSharp.Synthesis.StructMemoryLayout.SerializeInstance</a></div><div class="ttdeci">override StdLogicVector[] SerializeInstance(object instance)</div><div class="ttdoc">Serializes an instance of the layouted type. </div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l00429">MemoryMapping.cs:429</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_synthesis_1_1_struct_memory_layout_html_a82d61d1749bc378788967a58d72863fb"><div class="ttname"><a href="class_system_sharp_1_1_synthesis_1_1_struct_memory_layout.html#a82d61d1749bc378788967a58d72863fb">SystemSharp.Synthesis.StructMemoryLayout.GetFieldOffset</a></div><div class="ttdeci">ulong GetFieldOffset(FieldInfo field)</div><div class="ttdoc">Returns the start offset of a particular field (must be member of the layouted struct). </div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l00414">MemoryMapping.cs:414</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_synthesis_1_1_field_location_html"><div class="ttname"><a href="class_system_sharp_1_1_synthesis_1_1_field_location.html">SystemSharp.Synthesis.FieldLocation</a></div><div class="ttdoc">Represents the memory layout of a field instance. </div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l00233">MemoryMapping.cs:233</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_synthesis_1_1_memory_region_html_aee406c97834577e98adee1821a4ee42b"><div class="ttname"><a href="class_system_sharp_1_1_synthesis_1_1_memory_region.html#aee406c97834577e98adee1821a4ee42b">SystemSharp.Synthesis.MemoryRegion.Map</a></div><div class="ttdeci">MemoryMappedStorage Map(object item, TypeDescriptor dataType)</div><div class="ttdoc">Maps a data item to this region. </div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l00828">MemoryMapping.cs:828</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_synthesis_1_1_s_l_v_serializable_html_a4ff29b8c4c160812019e3c8d76ae077f"><div class="ttname"><a href="class_system_sharp_1_1_synthesis_1_1_s_l_v_serializable.html#a4ff29b8c4c160812019e3c8d76ae077f">SystemSharp.Synthesis.SLVSerializable.SLVSerializable</a></div><div class="ttdeci">SLVSerializable(Type objectType, Type serializerType)</div><div class="ttdoc">Constructs the attribute. </div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l00083">MemoryMapping.cs:83</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_meta_1_1_type_descriptor_html"><div class="ttname"><a href="class_system_sharp_1_1_meta_1_1_type_descriptor.html">SystemSharp.Meta.TypeDescriptor</a></div><div class="ttdoc">Describes a type. </div><div class="ttdef"><b>Definition:</b> <a href="_type_descriptor_8cs_source.html#l00120">TypeDescriptor.cs:120</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_synthesis_1_1_memory_layout_contract_class_html"><div class="ttname"><a href="class_system_sharp_1_1_synthesis_1_1_memory_layout_contract_class.html">SystemSharp.Synthesis.MemoryLayoutContractClass</a></div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l00299">MemoryMapping.cs:299</a></div></div>
<div class="ttc" id="struct_system_sharp_1_1_data_types_1_1_std_logic_vector_html_a2b88c122ab31e982a58f2afa18d39283"><div class="ttname"><a href="struct_system_sharp_1_1_data_types_1_1_std_logic_vector.html#a2b88c122ab31e982a58f2afa18d39283">SystemSharp.DataTypes.StdLogicVector.Size</a></div><div class="ttdeci">int Size</div><div class="ttdoc">Returns the length (i.e. number of bits) of this logic vector. </div><div class="ttdef"><b>Definition:</b> <a href="_std_logic_lib_8cs_source.html#l00984">StdLogicLib.cs:984</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_synthesis_1_1_h_w_marshal_info_html"><div class="ttname"><a href="class_system_sharp_1_1_synthesis_1_1_h_w_marshal_info.html">SystemSharp.Synthesis.HWMarshalInfo</a></div><div class="ttdoc">A default implementation of IMarshalInfo for StdLogicVector serialization. </div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l00178">MemoryMapping.cs:178</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_synthesis_1_1_memory_mapper_html"><div class="ttname"><a href="class_system_sharp_1_1_synthesis_1_1_memory_mapper.html">SystemSharp.Synthesis.MemoryMapper</a></div><div class="ttdoc">Provides an entry point for memory mapping. </div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l00969">MemoryMapping.cs:969</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_synthesis_1_1_memory_region_html"><div class="ttname"><a href="class_system_sharp_1_1_synthesis_1_1_memory_region.html">SystemSharp.Synthesis.MemoryRegion</a></div><div class="ttdoc">A memory region is part of a memory region hierarchy and contains memory mappings of constants and va...</div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l00729">MemoryMapping.cs:729</a></div></div>
<div class="ttc" id="interface_system_sharp_1_1_synthesis_1_1_i_serializer_html_a0e96707519704b35bb8afc0ece7d5155"><div class="ttname"><a href="interface_system_sharp_1_1_synthesis_1_1_i_serializer.html#a0e96707519704b35bb8afc0ece7d5155">SystemSharp.Synthesis.ISerializer.Serialize</a></div><div class="ttdeci">StdLogicVector Serialize(object value)</div><div class="ttdoc">Serializes an object as StdLogicVector </div></div>
<div class="ttc" id="class_system_sharp_1_1_synthesis_1_1_empty_memory_layout_html"><div class="ttname"><a href="class_system_sharp_1_1_synthesis_1_1_empty_memory_layout.html">SystemSharp.Synthesis.EmptyMemoryLayout</a></div><div class="ttdoc">Dummy memory layout which does not consume any storage space. </div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l00448">MemoryMapping.cs:448</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_meta_1_1_type_descriptor_html_a2304c78f42e22f2ebbbaa6ee3e46ed05"><div class="ttname"><a href="class_system_sharp_1_1_meta_1_1_type_descriptor.html#a2304c78f42e22f2ebbbaa6ee3e46ed05">SystemSharp.Meta.TypeDescriptor.HasIntrinsicTypeOverride</a></div><div class="ttdeci">bool HasIntrinsicTypeOverride</div><div class="ttdoc">Whether the descriptor describes a System#-intrinsic type. </div><div class="ttdef"><b>Definition:</b> <a href="_type_descriptor_8cs_source.html#l00141">TypeDescriptor.cs:141</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_synthesis_1_1_default_marshal_info_html_a59613cd2ce8c4d2f2dcfa2b2ae1b6255"><div class="ttname"><a href="class_system_sharp_1_1_synthesis_1_1_default_marshal_info.html#a59613cd2ce8c4d2f2dcfa2b2ae1b6255">SystemSharp.Synthesis.DefaultMarshalInfo.DefaultMarshalInfo</a></div><div class="ttdeci">DefaultMarshalInfo()</div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l00165">MemoryMapping.cs:165</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_synthesis_1_1_empty_memory_layout_html_a28543836840027d50e09f163090d0e65"><div class="ttname"><a href="class_system_sharp_1_1_synthesis_1_1_empty_memory_layout.html#a28543836840027d50e09f163090d0e65">SystemSharp.Synthesis.EmptyMemoryLayout.SerializeInstance</a></div><div class="ttdeci">override StdLogicVector[] SerializeInstance(object instance)</div><div class="ttdoc">Serializes an instance of the layouted type. </div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l00455">MemoryMapping.cs:455</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_synthesis_1_1_prim_memory_layout_html"><div class="ttname"><a href="class_system_sharp_1_1_synthesis_1_1_prim_memory_layout.html">SystemSharp.Synthesis.PrimMemoryLayout</a></div><div class="ttdoc">Memory layout for primitive types. </div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l00317">MemoryMapping.cs:317</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_synthesis_1_1_s_l_v_serializable_html_ab5535df7857e785e8e07fb95e58f2533"><div class="ttname"><a href="class_system_sharp_1_1_synthesis_1_1_s_l_v_serializable.html#ab5535df7857e785e8e07fb95e58f2533">SystemSharp.Synthesis.SLVSerializable.TryGetSerializer</a></div><div class="ttdeci">static ISerializer TryGetSerializer(Type type)</div><div class="ttdoc">Tries to find a serializer for the specified type. To do so, it looks for the SLVSerializable attribu...</div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l00095">MemoryMapping.cs:95</a></div></div>
<div class="ttc" id="struct_system_sharp_1_1_data_types_1_1_std_logic_html"><div class="ttname"><a href="struct_system_sharp_1_1_data_types_1_1_std_logic.html">SystemSharp.DataTypes.StdLogic</a></div><div class="ttdoc">This data type represents a single bit of four-valued logic, similiar to IEEE 1164. </div><div class="ttdef"><b>Definition:</b> <a href="_std_logic_lib_8cs_source.html#l00192">StdLogicLib.cs:192</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_synthesis_1_1_memory_layout_html"><div class="ttname"><a href="class_system_sharp_1_1_synthesis_1_1_memory_layout.html">SystemSharp.Synthesis.MemoryLayout</a></div><div class="ttdoc">Abstract base class for memory layouts </div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l00268">MemoryMapping.cs:268</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_synthesis_1_1_memory_layout_html_a723172ac20b1f8385a3445b95e29d1c6"><div class="ttname"><a href="class_system_sharp_1_1_synthesis_1_1_memory_layout.html#a723172ac20b1f8385a3445b95e29d1c6">SystemSharp.Synthesis.MemoryLayout.Size</a></div><div class="ttdeci">ulong Size</div><div class="ttdoc">Size of the layout in words, whereby word size is platform-dependent. </div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l00278">MemoryMapping.cs:278</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_synthesis_1_1_marshal_html_ac01bb04103983e58b27227a3c3ce105a"><div class="ttname"><a href="class_system_sharp_1_1_synthesis_1_1_marshal.html#ac01bb04103983e58b27227a3c3ce105a">SystemSharp.Synthesis.Marshal.Serialize</a></div><div class="ttdeci">static StdLogicVector[] Serialize(object value, IMarshalInfo minfo)</div><div class="ttdoc">Computes a serialization of a value with respect to a specific marshaling information. </div><div class="ttdef"><b>Definition:</b> <a href="_memory_mapping_8cs_source.html#l00701">MemoryMapping.cs:701</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_bb5e995590685548b7e11478911ee7c3.html">SystemSharp-Google-SVN</a></li><li class="navelem"><a class="el" href="dir_8deefa4467a62b572b52d238d562b104.html">SystemSharp</a></li><li class="navelem"><a class="el" href="dir_0e5a72156f8560bbc472a395da2569d6.html">SystemSharp</a></li><li class="navelem"><a class="el" href="dir_9d3c30b4336bd92c64ccf0aeee487ace.html">SystemSharp</a></li><li class="navelem"><a class="el" href="dir_c7fae1b46a76b74206568f11430f4459.html">Synthesis</a></li><li class="navelem"><a class="el" href="_memory_mapping_8cs.html">MemoryMapping.cs</a></li>
    <li class="footer">Generated on Thu Dec 26 2013 14:21:41 for SystemSharp by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
